This app is ready to go with all the JSON-based CRUD routes you need! Build a front end for it using Backbone.
Before we can start this app, there are a few things we need to do...
-
In the root of the repository, run
npm install
. This is similar tobundle
in rubyland... But with some differences. If you don't have Node installed, go here and download and run the installer. NPM is installed as part of Node. -
Start
psql
and create ahouses_of_westeros_development
database. -
In terminal, try running the command
sequelize
. If it returns an error, runnpm install -g sequelize-cli
. This installs the command line interface for thesequelize
module. -
Run
sequelize db:migrate
. Can you guess what this does? -
Run
node seedfile.js
. This will populate the database with all the information about ASOIAF houses.
Implement the app's client-side structure using backbone.
The homepage should show a list with all the houses.
Extra
On the homepage, add a form to submit new houses. When it is submitted, the list with all the houses should be updated automatically.