Skip to content

Latest commit

 

History

History
executable file
·
62 lines (39 loc) · 1.52 KB

File metadata and controls

executable file
·
62 lines (39 loc) · 1.52 KB

koa2-boilerplate

MIT node version docker build

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

Preview

Online Demo

Usage

$ 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

Develop & Deploy

Screenshots

  • Login Page

Login Page

  • Dashboard

Dashboard

License

MIT