Skip to content

mykite/koa2-boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa2-boilerplate

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

Preview

Online Demo

Usage

$ npm install 
$ npm run start

Screenshots

  • Login Page

Login Page

Structure

.
├── README.md
├── app
│   └── entry.js
├── package.json
├── src
│   ├── app.js
│   ├── config
│   │   ├── base.js
│   │   ├── config.js
│   │   └── passport.js
│   ├── lib
│   │   └── db.js
│   ├── middleware
│   │   ├── checkauth.js
│   │   └── index.js
│   ├── models
│   │   └── account.js
│   ├── public
│   │   └── index.html
│   └── routes
│       ├── auth.js
│       ├── index.js
│       ├── main.js
│       └── open.js
├── start.js
└── webpack.config.js

About

Koa2 boilerplate in ES7 with Babel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.0%
  • HTML 15.0%