If you think this source code is useful, it will be great if you just give it star.
Clone the repository
git clone https://github.com/paresh-barad/sequelize-mysql-express-todo.git
Go inside the directory
cd sequelize-mysql-express-todo/
Install dependencies
npm install
Start server
node server.js
Global variables such as mysql host, user, password and database can be set in config/db.config.js
Restful API
An api with the following routes
POST /api/user
POST /api/user/login
POST /api/todo
GET /api/todo
GET /api/todo/:id
PUT /api/todo/:id
DELETE /api/todo/:id
DELETE /api/todo