This app is a representation about how to create an API with Sequelize
This project is using sequelize-cli, if you don't have it (check by running npm list -g --depth=0
) then install it by:
npm install -g sequelize-cli
Please edit the example.env and insert your database credential & desired port to run this app
After that, copy the file & rename it to .env
Please run these command after cloning this repo Install dependencies
npm install
Create database
sequelize db:create
Migrate schema
sequelize db:migrate
Seed data
sequelize db:seed:all
This app has a postman collection that you can import to postman, you can check it here