Explore: Sequelize - Express - Migrations - Seed
Base on: Sequelize + Express Starter Guide
First of all
- Clone my repo
$ git clone https://github.com/nvlinh99/sequelize-express.git
$ npm install
Next,
- Config database
$ cd config/config.json
*** Edit development:
"development": {
"username": <your username>,
"password": <your pwd>,
"database": <your database name>,
"host": "127.0.0.1",
"dialect": "postgres"
}
* Field "dialect" you can use another database such as: mysql, mongodb,...
And then,
- Run app:
$ npm start
Finally,
- Use Postman to test (GET/POST)