Rcom Api project
dependency
npm install restify@5.0.1 --save
npm install restify-errors@5.0.0 --save
npm install request@2.81.0 --save
npm install memcached@2.2.2 --save
npm install underscore@1.8.3 --save
npm install swagger-node-restify@0.1.2 --save
## unit test
npm install mocha -g
npm install gulp@3.9.1 -g
npm install mocha@3.5.0 --save-dev
npm install sinon@3.1.0 --save-dev
npm install jshint@2.9.5 --save-dev
npm install gulp@3.9.1 --save-dev
npm install gulp-jshint@2.0.4 --save-dev
npm install jshint-stylish@2.2.1 --save-dev
npm install gulp-mocha@4.3.1 --save-dev
folder structure
-
controllers:
This folder contain code for controllers. It also have -
lib:
-
models:
start
node index.js
## or
npm start
swagger ui for api docs
TODO
- api version use path /v1 or use header version 1.0.0 ?
tech reference
- http://restify.com/
- https://github.com/request/request
- https://github.com/3rd-Eden/memcached
- http://underscorejs.org/
- https://github.com/caolan/nodeunit
- https://github.com/sinonjs/sinon
- https://github.com/jimmyhchan/gulp-jshint-mocha-boilerplate