{"id":20826717,"url":"https://github.com/cedrickchee/tdd-node-pg-knex","last_synced_at":"2026-05-03T18:36:04.848Z","repository":{"id":138118969,"uuid":"276364806","full_name":"cedrickchee/tdd-node-pg-knex","owner":"cedrickchee","description":"A test-first approach to developing a REST-ful API in Node.js","archived":false,"fork":false,"pushed_at":"2023-01-11T16:39:24.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-09T23:39:50.653Z","etag":null,"topics":["knexjs-nodejs-db-migration","nodejs","postgresql","red-green-refactor","tdd","tdd-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedrickchee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-01T11:55:12.000Z","updated_at":"2025-02-21T15:52:46.000Z","dependencies_parsed_at":"2024-03-26T12:15:33.742Z","dependency_job_id":null,"html_url":"https://github.com/cedrickchee/tdd-node-pg-knex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedrickchee/tdd-node-pg-knex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Ftdd-node-pg-knex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Ftdd-node-pg-knex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Ftdd-node-pg-knex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Ftdd-node-pg-knex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickchee","download_url":"https://codeload.github.com/cedrickchee/tdd-node-pg-knex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Ftdd-node-pg-knex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32580183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["knexjs-nodejs-db-migration","nodejs","postgresql","red-green-refactor","tdd","tdd-javascript"],"created_at":"2024-11-17T23:09:50.422Z","updated_at":"2026-05-03T18:36:04.832Z","avatar_url":"https://github.com/cedrickchee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TDD with Node.js\n\nA project created to learn Test Driven Development (TDD) with Node.js, PostgreSQL, and Knex.\nWe practice a [TDD approach](https://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html) called Red/Green/Refactor.\n\nThe rules of Red/Green/Refactor (RGR) cycle are simple.\n\n1. Create a unit tests that fails\n2. Write production code that makes that test pass.\n3. Clean up the mess you just made.\n\n\u003e Make it work. Make it right. Make it fast. — Kent Beck's original injunction\n\n**What are we creating?**\n\nThis is a test-first approach to developing a RESTful API.\n\n## Tech Stack\n\n- Database: PostgreSQL\n- SQL query builder: Knex.js\n- Test runner: Mocha\n- Test assertion: Chai\n\n## Local Development\n\nRun the app with this command:\n\n```sh\nnpm start\n```\n\nDebug the app with this command:\n\n```sh\nnpm run debug\n```\n\n## Project status\n\nWe are not quite done since we are not testing or handling for all possible errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Ftdd-node-pg-knex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickchee%2Ftdd-node-pg-knex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Ftdd-node-pg-knex/lists"}