https://github.com/nawodyaishan/webdev-node-express-typescript-mongo-zod-api
Application Programming Interface using NodeJs, ExpressJs, TypeScript, MongoDB and Zod
https://github.com/nawodyaishan/webdev-node-express-typescript-mongo-zod-api
api-rest backend express mongodb nodejs typescript zod
Last synced: 4 months ago
JSON representation
Application Programming Interface using NodeJs, ExpressJs, TypeScript, MongoDB and Zod
- Host: GitHub
- URL: https://github.com/nawodyaishan/webdev-node-express-typescript-mongo-zod-api
- Owner: nawodyaishan
- Created: 2022-10-12T16:15:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T11:59:59.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T05:28:33.214Z (7 months ago)
- Topics: api-rest, backend, express, mongodb, nodejs, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Application Programming Interface using NodeJs, ExpressJs, TypeScript, MongoDB and Zod.
# Required Packages
### Adding Production Dependencies
npm i express zod config cors express mongoose pino pino-pretty dayjs bcrypt jsonwebtoken lodash nanoid### Adding Dev Dependencies
npm 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## Requirements
* A running instance of MongoDB
* Postman
* An IDE or text editor (VS Code)
* A web browser
* A package manager such as NPM or Yarn
* Node.js installed* Testing the API with Jest
* Build a React.js user interface
* Add Prometheus metrics to the API
* Deploy the API with Caddy & Docker
* Add Google OAuth## Concepts
* REST API principals
* CRUD
* HTTP methods
* JWT & refresh tokens
* Request validation
## Technologies
* Node.js
* MongoDB with Mongoose
* TypeScript
* Express.js & Express.js middleware
* Zod validation## Data flow
## Access & refresh token flow
