A minimal boilerplate of koa v2.
Both ways you can start:
fork this repo & git clone the repo
npm install koa2-boilerplate
npm install
npm start
npm test
- Watcher and hot-reload: nodemon
- Test:
- Build: babel
- tools: babel-register
- presets: babel-preset-es2015-node5
- plugins: transform-async-to-generator, syntax-async-functions
- Lint: You can choose the lint tool that you prefer.
MIT © GeekPlux
登录信息存储在cookie(页面使用) 接口调用都加入head中 页面调用服务接口 从cookie取信息 Node调用服务接口 从cookie取信息