JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
client initial Nov 1, 2015
server updated README Feb 12, 2017
.gitignore initial Nov 1, 2015
.sequelizerc added migrations Nov 1, 2015 updated README Feb 12, 2017
gulpfile.js Fixed Path error Feb 11, 2017
package.json added migrations Nov 1, 2015

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