Based on koajs, bookshelf and knex
Requirements:
$ git clone git@github.com:mazahell/koa-boilerplate.git
$ cd koa-boilerplate/
$ make up
$ make db-refresh
$ npm i
$ node server.js
This command should up koajs http server
- check your code by built-in js checker
make lint
, if any errors occur - you should fix them, try to usemake precommit
- merge your branch with
master
, in which you propose pull request - make pull request and wait for confirmation
- when your pull request was submited, then checkout on
master
branch and continue coding - enjoy
In app we have users admin@mail.com
and user@mail.com
with same password for each 123456
$ npm test
In development mode
documentation located at {your_site_url}/docs
.
We use airbnb-base eslint preset