Building a bulletproof REST API with Typescript, Express.js, Express-validator, and Sequelize with MySQL |CRUD REST API
For requests valiation, I have used the 'express-validator' package (An express.js middleware for validation & sanitizing)
- set up typscript for development & for production environments
- basic express server with typescript
- setup database with the help of Sequelize ORM (Sequelize package contains built-in TypeScript declarations)
- create model
- create todo POST api
- read todo with pagaination (Limit & Offset)
- read todo by id
- update todo by id
- delete todo by id