Installing and configuring Sequelize-cli
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
Tip
Remember we always use the
-save
flag to add the module to ourpackage.json
file. - Create a file called
.sequelizerc
on the root ...
Get Node.js 6.x Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.