https://github.com/cedrickchee/tdd-node-pg-knex
A test-first approach to developing a REST-ful API in Node.js
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.7%) to scientific vocabulary
Keywords
Repository
A test-first approach to developing a REST-ful API in Node.js
Basic Info
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
TDD with Node.js
A project created to learn Test Driven Development (TDD) with Node.js, PostgreSQL, and Knex. We practice a TDD approach called Red/Green/Refactor.
The rules of Red/Green/Refactor (RGR) cycle are simple.
- Create a unit tests that fails
- Write production code that makes that test pass.
- Clean up the mess you just made.
Make it work. Make it right. Make it fast. — Kent Beck's original injunction
What are we creating?
This is a test-first approach to developing a RESTful API.
Tech Stack
- Database: PostgreSQL
- SQL query builder: Knex.js
- Test runner: Mocha
- Test assertion: Chai
Local Development
Run the app with this command:
sh
npm start
Debug the app with this command:
sh
npm run debug
Project status
We are not quite done since we are not testing or handling for all possible errors.
Owner
- Name: Cedric Chee
- Login: cedrickchee
- Kind: user
- Location: PID 1
- Company: InvictusByte
- Website: https://cedricchee.com
- Twitter: cedric_chee
- Repositories: 227
- Profile: https://github.com/cedrickchee
Lead Software Engineer | LLMs | full stack Go/JS dev, backend | product dev @ startups | 🧑🎓 CompSci | alumni: fast.ai, Antler.co
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 1 minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 234 dependencies
- chai ^4.2.0 development
- chai-http ^4.3.0 development
- mocha ^8.0.1 development
- cookie-parser ~1.4.4
- debug ~2.6.9
- dotenv ^8.2.0
- express ~4.16.1
- knex ^2.4.0
- morgan ~1.9.1
- pg ^8.2.1
- semver ^7.3.2