Node API with Sequelize

This app is a representation about how to create an API with Sequelize

Preparation

Sequelize CLI

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

Environment variable

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

Initialization

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

Things to know

Postman collection

This app has a postman collection that you can import to postman, you can check it here