Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node, Postgres, and Sequelize

Want to learn how to build this project?

Check out the blog post.

Want to use this project?

  1. Fork/Clone
  2. Install dependencies - npm install
  3. Create a local Postgres databases - todos - and then update server/config.json
  4. Add a "migrations" folder to the "server" folder
  5. Create two new migrations:
$ node_modules/.bin/sequelize model:create --name Todo --attributes "title:string, complete:boolean,UserId:integer"
$ node_modules/.bin/sequelize model:create --name User --attributes "email:string"
  1. Update the migration files in "server/models" (if necessary) and then sync the database:
$ node_modules/.bin/sequelize db:migrate
  1. Run the development server - gulp

Releases

Packages

Used by

Contributors

Languages