Skip to content

ExchangeWorld/food-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

food-API

Requirement

  • postgre
  • redis
  • node v5

Setup

  1. setting up config file, config/local.js, you can copy the template.
$ cp local-development-template.js local.js
$ vim local.js
  1. create postgre database first, then run the initial script
$ createdb food                 # create the postgre db
$ node scripts/init_pg_tool.js  # initial tables
  1. run server
$ npm run dev  # start nodemon

Document

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published