-
git clone https://github.com/chrifts/node-express-sequelize-jwt.git
-
Go to file 'cloned-folder/config/config.json' and edit. Setup DB credentials here. First need to have a schema created. You can do it runing on MySQL: "CREATE DATABASE db_name_you_like"
-
Go to 'cloned-folder/' and run
npm install
-
run
npm start
-
You need to have sequelize CLI installed (see https://www.npmjs.com/package/sequelize-cli),then you can run:
sequelize db:migrate
Now you have the Users table created in your selected database. You can also run:sequelize db:migrate:undo:all
to revert migrations.