Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 777 Bytes

README.md

File metadata and controls

36 lines (31 loc) · 777 Bytes

Sequelize x Express

Explore: Sequelize - Express - Migrations - Seed

Base on: Sequelize + Express Starter Guide

Installation

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)