Sequelize-cli is a very useful command-line interface for creating models, configurations and migration files to databases. It's integrated with Sequelize middleware and operates with many relational databases such as PostgreSQL, MySQL, MSSQL, Sqlite.
Tip
You can find more information about Sequelize middleware implementation at: http://docs.sequelizejs.com/en/latest/ and full documentation of Sequelize-Cli at: https://github.com/sequelize/cli.
Open terminal/shell and type:
npm install -g sequelize-cli
Install
sequelize
with the following command:npm install sequelize -save
Create a file called
.sequelizerc
on the root folder and place the following code:var path = require('path'); module.exports = { 'config': path.resolve('./config', 'config.json'), 'migrations-path': path.resolve('./config', 'migrations'), 'models...