- postgre
- redis
- node v5
- setting up config file,
config/local.js
, you can copy the template.
$ cp local-development-template.js local.js
$ vim local.js
- create postgre database first, then run the initial script
$ createdb food # create the postgre db
$ node scripts/init_pg_tool.js # initial tables
- run server
$ npm run dev # start nodemon
We use apidoc
to auto-gen documents, so you need to install it first.
~$ npm install -g apidoc # install apidoc
~$ npm run doc # generate doc
~$ cd doc && npm start # startup doc server at port 3020