Skip to content

superalsrk/koa2-boilerplate

Repository files navigation

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

About

Enhanced koa2 boilerplate in ES7 with Babel http://koa2-boilerplate.tarax.cn/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published