A RESTful API boilerplate with Koa for personal usage
- Node.js ^6.x
- MongoDB ^3.x
- Redis ^3.x
$ yarn install
$ yarn run dev
$ yarn run build
$ yarn start
Use Docker for development.
$ docker-compose -f docker-compose.dev.yml up
$ yarn run build
$ docker-compose up
First start MongoDB, and run:
# Lint
$ yarn run lint
# Test
$ yarn test
# Watch test
$ yarn test -- --watch
# Get code coverage report
$ yarn run test-cov