Skip to content

yulian-tw/sequelize-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEQUELIZE CLI

This is a repo to explore sequelize-cli functions, with Postgres Database.

Set up

We will use npx sequelize-cli instead because it doesn't required to be packaged into a production build.

Dependencies

The sequelize-cli is having dependency on sequelize package.

npm install pg pg-hstore sequelize

What have been done.

[X] Simply run npm run sequelize:init. [X] Run npm run sequelize:model:generate -- --name Pokemon --attributes name:string,japaneseName:string,baseHP:integer,category:string,trainerId:integer. [ ] Configure .sequelizerc to store all db files into a db folder (to differentiate with the application codes). - This is because only partial files generated/referenced by sequelize-cli will be used in application codes as well. - We would like to create a reusable package for migration and application build. [ ] Clean up package.json

About

Exploratory repo for Sequelize CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published