Skip to content

Building a bulletproof REST API with Typescript, Express.js, Express-validator, and Sequelize with MySQL |CRUD REST API

Notifications You must be signed in to change notification settings

Faris-Abuali/RESTful-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a bulletproof REST API with Typescript, Express.js, Express-validator, and Sequelize with MySQL |CRUD REST API

I have followd the MVC design pattern with a professional folder structure and organization

For requests valiation, I have used the 'express-validator' package (An express.js middleware for validation & sanitizing)

  1. set up typscript for development & for production environments
  2. basic express server with typescript
  3. setup database with the help of Sequelize ORM (Sequelize package contains built-in TypeScript declarations)
  4. create model
  5. create todo POST api
  6. read todo with pagaination (Limit & Offset)
  7. read todo by id
  8. update todo by id
  9. delete todo by id
I have pushed the (.env) file because it doesn't contain sensitive information.

About

Building a bulletproof REST API with Typescript, Express.js, Express-validator, and Sequelize with MySQL |CRUD REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published