Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superalsrk/koa2-boilerplate
Enhanced koa2 boilerplate in ES7 with Babel http://koa2-boilerplate.tarax.cn/
https://github.com/superalsrk/koa2-boilerplate
koa2
Last synced: 6 days ago
JSON representation
Enhanced koa2 boilerplate in ES7 with Babel http://koa2-boilerplate.tarax.cn/
- Host: GitHub
- URL: https://github.com/superalsrk/koa2-boilerplate
- Owner: superalsrk
- Created: 2016-08-02T12:05:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-05T08:11:33.000Z (about 8 years ago)
- Last Synced: 2024-11-07T09:02:07.197Z (13 days ago)
- Topics: koa2
- Language: JavaScript
- Homepage:
- Size: 2.1 MB
- Stars: 215
- Watchers: 11
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
koa2-boilerplate
====![MIT](https://img.shields.io/npm/l/express.svg) ![node version](https://img.shields.io/badge/node-v6.3.0-green.svg) [![docker build](https://img.shields.io/docker/automated/superalsrk/koa2-boilerplate.svg)](https://hub.docker.com/r/superalsrk/koa2-boilerplate/builds/) [![](https://images.microbadger.com/badges/image/superalsrk/koa2-boilerplate.svg)](https://microbadger.com/images/superalsrk/koa2-boilerplate "Get your own image badge on microbadger.com")
This boilerplate shows ways to
+ Use mysql in Koa2
+ CORS Ajax request
+ Ajax Login and Ajax Logout in Koa2, based on [koa-passport](https://github.com/rkusa/koa-passport) and [passport-local](https://github.com/jaredhanson/passport-local)
+ Export excel in Koa2, based on [excel-export](https://github.com/functionscope/Node-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](http://koa2-boilerplate.tarax.cn)
### Usage
```bash
$ 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
+ [中文版](https://github.com/superalsrk/koa2-boilerplate/wiki/develop-and-deploy.md)
+ [English](https://github.com/superalsrk/koa2-boilerplate/wiki/develop-and-deploy-en.md)## Screenshots
+ Login Page
![Login Page](./src/public/assets/img/screenshots/koa-2-login-osx.jpeg)
+ Dashboard
![Dashboard](./src/public/assets/img/screenshots/koa-2-dashboard.jpeg)
### License
MIT