{"id":30652760,"url":"https://github.com/tomdoestech/rest-api-for-scale","last_synced_at":"2026-05-09T02:34:16.937Z","repository":{"id":270057480,"uuid":"909215907","full_name":"TomDoesTech/rest-api-for-scale","owner":"TomDoesTech","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-28T03:55:12.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T04:27:57.356Z","etag":null,"topics":["drizzle-orm","nodejs","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"https://youtu.be/m1sNz9Fw_vY","language":"TypeScript","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/TomDoesTech.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":"2024-12-28T03:43:19.000Z","updated_at":"2024-12-28T03:55:35.000Z","dependencies_parsed_at":"2024-12-28T04:28:38.080Z","dependency_job_id":"7e7db51c-8b88-4d8e-9d26-a0482504378d","html_url":"https://github.com/TomDoesTech/rest-api-for-scale","commit_stats":null,"previous_names":["tomdoestech/rest-api-for-scale"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomDoesTech/rest-api-for-scale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2Frest-api-for-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2Frest-api-for-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2Frest-api-for-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2Frest-api-for-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomDoesTech","download_url":"https://codeload.github.com/TomDoesTech/rest-api-for-scale/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomDoesTech%2Frest-api-for-scale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272949730,"owners_count":25020451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["drizzle-orm","nodejs","postgresql","rest-api"],"created_at":"2025-08-31T07:09:02.274Z","updated_at":"2026-05-09T02:34:11.890Z","avatar_url":"https://github.com/TomDoesTech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build a REST API like a senior developer\n\n## Need help?\nThe best place to get help is on Discord or X.\n\nDiscord: https://discord.gg/4ae2Esm6P7\nX: https://x.com/tomdoes_tech\n\n## What you will learn\n* Basic Principals of REST APIs\n* How to structure your applications\n* How to test REST APIs\n* How to use Docker for local development\n* How to use Drizzle for database interactions\n* How to use JSON Schema for API design\n* Basic TypeScript\n* How to capture and visualise metrics\n\n\n## Modules\n### User\n* Functional style\n* json-schema\n\n### Job\n* Object-oriented\n* Dependency injection\n* json-schema\n\n## Job application\n* Object-oriented\n* Dependency injection\n* Zod schema\n\n## Features\n* Authentication\n* User management\n* Job management\n* Metrics\n\n\n\n## Technology\n* Node.js\n* Fastify\n* Drizzle\n* Postgres\n* TypeScript\n* Pino\n* Prometheus\n* Grafana\n\n## What you'll need\n* A code editor - VSCode/Cursor\n* A HTTP client - Postman\n* Node.js installed\n* Docker installed (Optional) or a Postgres instance\n* SQL client - [TablePlus](https://tableplus.com) (Optional)\n\n## Options for Postgres\n* Docker (Recommended)\n* Local Postgres instance\n* DBngin (local) https://dbngin.com/\n* Neon (Cloud) https://neon.tech/\n* Supabase (Cloud) https://supabase.com/\n\n## Part 1 - Design\n* Database design\n* API design\n\n## Part 2 - Setup Docker (Optional)\n* Postgres\n* API\n* Dozzle (Logs)\n\n## Part 3 - Project setup\n* Install dependencies\n* Install dev dependencies\n* Initalise project\n* Setup database\n* Setup logging\n* Configure server\n\n## Part 4 - User module\n* Register user\n* Login\n* Get user\n* Testing\n\n## Part 5 - Job module\n* Create job\n* Get job\n* Update job\n* Delete job\n* Testing\n\n## Part 6 - Job application\n* Create job application\n* Get job applications for a job\n* Update job application status\n* Delete job application\n* Testing\n\n## Part 7 - Metrics\n* Setup Prometheus\n* Capture default metrics\n* Add a histogram for all requests\n* Add a custom metric for database calls\n* Visualise metrics with Grafana\n\n## Challenges\n1. Verify the user's account via email\n2. Add an OAuth flow with an identity provider like Google or GitHub\n3. Add multi-tenancy\n\n## Need help?\nDiscord: https://discord.gg/4ae2Esm6P7\nTwitter: https://twitter.com/tomdoes_tech\nBluesky: https://tomdoestech.bsky.social\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdoestech%2Frest-api-for-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomdoestech%2Frest-api-for-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdoestech%2Frest-api-for-scale/lists"}