-
Copy this source code to folder config and filename is config.json or copy file config.example.json
{ "development": { "username": "root", "password": null, "database": "nodejs", "host": "127.0.0.1", "dialect": "mysql" }, "test": { "username": "root", "password": null, "database": "nodejs", "host": "127.0.0.1", "dialect": "mysql" }, "production": { "username": "root", "password": null, "database": "nodejs", "host": "127.0.0.1", "dialect": "mysql" } }
-
Copy this file .env.example and then rename to .env place in your root project
nodemon ./server.js 127.0.0.1 3000
npx sequelize-cli db:migrate
npx sequelize-cli db:seed:all
npx sequelize-cli model:generate --name Table --attributes field1:string,field2:string