This boilerplate shows ways to
- Use mysql in Koa2
- CORS Ajax request
- Ajax Login and Ajax Logout in Koa2, based on koa-passport and passport-local
- Export excel in Koa2, based on excel-export
- Serve static files in Koa2
- Integrate with Redux App
- Use charts(D3.js, Echarts, plot) library in Redux App
- Deploy Koa2 app with docker
$ npm install
# Start application
$ npm run dev
# Run test cases
$ npm run test
# Generate test report
$ npm run report
You can also use docker to start this boilerplate
$ docker pull superalsrk/koa2-boilerplate
$ docker run -d -p 5000:5000 superalsrk/koa2-boilerplate
- Login Page
- Dashboard
MIT