This is a simple project setup for Koa 2 with node < 7.6. It enables to use async/await support for node < 7.6 with the help of babel.
- Node.js v7.6 and below
- Clone repo into a folder
cd koa2-starter-kit
npm install
- install node depsnpm run build
- static buildnpm run dev
- start the server in dev modenpm start
- start server
npm install
To generate the initial build, which also copies over fonts, images:
npm run build
To run the server in dev mode which builds the code and watches for changes
npm run dev