{"id":21251854,"url":"https://github.com/nawodyaishan/webdev-node-express-typescript-mongo-zod-api","last_synced_at":"2026-04-11T17:06:33.408Z","repository":{"id":122819371,"uuid":"550357702","full_name":"nawodyaishan/WebDev-Node-Express-TypeScript-Mongo-Zod-API","owner":"nawodyaishan","description":"Application Programming Interface using NodeJs, ExpressJs, TypeScript, MongoDB and Zod","archived":false,"fork":false,"pushed_at":"2022-11-07T11:59:59.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T05:28:33.214Z","etag":null,"topics":["api-rest","backend","express","mongodb","nodejs","typescript","zod"],"latest_commit_sha":null,"homepage":"","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/nawodyaishan.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":"2022-10-12T16:15:54.000Z","updated_at":"2022-10-15T18:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0449375c-1e1c-4f8f-9d16-00fe28ba63bf","html_url":"https://github.com/nawodyaishan/WebDev-Node-Express-TypeScript-Mongo-Zod-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nawodyaishan/WebDev-Node-Express-TypeScript-Mongo-Zod-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2FWebDev-Node-Express-TypeScript-Mongo-Zod-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2FWebDev-Node-Express-TypeScript-Mongo-Zod-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2FWebDev-Node-Express-TypeScript-Mongo-Zod-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2FWebDev-Node-Express-TypeScript-Mongo-Zod-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nawodyaishan","download_url":"https://codeload.github.com/nawodyaishan/WebDev-Node-Express-TypeScript-Mongo-Zod-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2FWebDev-Node-Express-TypeScript-Mongo-Zod-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259831057,"owners_count":22918444,"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","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":["api-rest","backend","express","mongodb","nodejs","typescript","zod"],"created_at":"2024-11-21T03:45:02.395Z","updated_at":"2026-04-11T17:06:33.377Z","avatar_url":"https://github.com/nawodyaishan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Application Programming Interface using NodeJs, ExpressJs, TypeScript, MongoDB and Zod.\n\n# Required Packages\n\n### Adding Production Dependencies\nnpm i express zod config cors express mongoose pino pino-pretty dayjs bcrypt jsonwebtoken lodash nanoid\n\n### Adding Dev Dependencies\nnpm i @types/body-parser @types/config @types/cors @types/express @types/node @types/pino @types/bcrypt @types/jsonwebtoken @types/lodash @types/nanoid ts-node-dev typescript -D\n\n\n## Requirements\n* A running instance of MongoDB\n* Postman\n* An IDE or text editor (VS Code)\n* A web browser\n* A package manager such as NPM or Yarn\n* Node.js installed\n\n\n* Testing the API with Jest\n* Build a React.js user interface\n* Add Prometheus metrics to the API\n* Deploy the API with Caddy \u0026 Docker\n* Add Google OAuth\n\n## Concepts\n* REST API principals\n    * CRUD\n    * HTTP methods\n* JWT \u0026 refresh tokens\n* Request validation\n## Technologies\n* Node.js\n* MongoDB with Mongoose\n* TypeScript\n* Express.js \u0026 Express.js middleware\n* Zod validation\n\n\n## Data flow\n![data-flow](https://user-images.githubusercontent.com/50957846/195396037-0e0527ca-904d-4d30-8276-0771e37c0806.png)\n\n\n\n## Access \u0026 refresh token flow\n![refresh-token-flow](https://user-images.githubusercontent.com/50957846/195396031-7f1552ee-290c-4bf4-90a5-87c0d7565cb4.png)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnawodyaishan%2Fwebdev-node-express-typescript-mongo-zod-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnawodyaishan%2Fwebdev-node-express-typescript-mongo-zod-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnawodyaishan%2Fwebdev-node-express-typescript-mongo-zod-api/lists"}