1- Install dependencies using $ npm install
2- Configure your db in .env
3- Create your db using the cmd npm run CreateDB
4- Create your tables using the cmd npm run Migrate
5- Start the server using npm run start
6- If you want to start the server using dev mod with watching use npm run watch
- Delete the folder
/node_module/mysql-model/node_module/mysql
- Go to the file
/node_module/mysql-model/mysql-model.js
- In line 7 replace the code with :
var connection = mysql.createPool(options);
- Validation.
- Role Middeleware
- Has authority
https://www.getpostman.com/collections/7fef78066220be35f8b5