ECMA7 Koa2 Starter
PREREQUISITES
- Couchbase
- Node 4.3.1 or greater than
Routes
-
/user/create - [POST]
-
Expected input JSON Data
"email":"fakeemail@test.com""firstName":"tester""lastName":"super" -
Expected Response
"code": 200"data":"user":"created": true
Environment Variables
processenvSECRETprocessenvSALTprocessenvPORTprocessenvCOUCHBASE_URIprocessenvCOUCHBASE_BUCKETprocessenvPASSWORD
To Run
npm install && gulp && npm start
Function to Chain a Class with Await/async
helperschain = async { let _this = null; let result = null; for let i = 0; i < _functionslength; i++ let _function = _functionsi; result = _this ? await _this_function : await ; _this = result; ; return result;};
Authors
Peter A.Tariche
GPG
pub 4096R/20B2284C 2016-04-29 [expires: 2017-04-29]
uid [ultimate] Peter A. Tariche <ptariche@gmail.com>