To create a project, simply run:
npx znode-cquel <project-name>
- Change Directory
cd <project-name>
- Change the DB Credentials (Username, Password) in
src/config/config.json
"development": { "username": '<db_username>', "password": '<db_password>', "database": "db_dev", "host": "127.0.0.1", "dialect": "postgres" }
- Run the Script
npm i -g sequelize-cli sequelize db:create npm run setup npm run dev
- Generate a Schema
sequelize model:generate --name <schema_name> --attributes <key>:<data_type>
- example
sequelize model:generate --name User --attribute name:string,age:number,phone:number
- example