Check out the blog post.
- Fork/Clone
- Install dependencies -
npm install
- Create a local Postgres databases -
todos
- and then update server/config.json - Add a "migrations" folder to the "server" folder
- 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"
- Update the migration files in "server/models" (if necessary) and then sync the database:
$ node_modules/.bin/sequelize db:migrate
- Run the development server -
gulp