Boilerplate for API Server with koa v2 written in Node.js and ES6.
- node ^6.0.0
- npm ^3.9.0
- Watcher and hot-reload: nodemon
- Build: babel
- tools: babel-cli, babel-core
- presets: babel-preset-es2015-node6, babel-preset-stage-3
- Deployment: PM2
- Tech Stack:
- Koa 2
- koa-bodyparser, koa-logger, koa-router, kcors
- PostgreSQL: pg, pg-pool
- ES7 async/await support
# install dependencies
npm install
# run for development with hot reload at localhost:3000
npm run dev
# build for production
npm run build
# run for production with pm2
npm run prd
MIT