sequelize-example

How to create migrations, models, seeders and how to get the data from the database

Stars
0

Sequelize example

How to run the project

Install dependencies :

yarn

# or

npm install

Edit config/config.json :

{
    "development": {
        "username": "root",
        "password": null,
        "database": "sequelize-example",
        "host": "127.0.0.1",
        "dialect": "mysql"
    },
    "test": {
        ...
    },
    "production": {
        ...
    }
}

Init and seed database :

sequelize db:migrate

sequelize db:seed:all

Run the project :

npm start
Related Projects