Skip to content

Latest commit

 

History

History
76 lines (45 loc) · 1.51 KB

README.md

File metadata and controls

76 lines (45 loc) · 1.51 KB

koa2-boilerplate

A minimal boilerplate of koa v2.

NPM Version NPM Downloads

Installation

Both ways you can start:

fork this repo & git clone the repo
npm install koa2-boilerplate

Command

Setup

npm install

Develop

npm start

Test

npm test

Dependencies

  • 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.

Reference

License

MIT © GeekPlux

登录信息存储在cookie(页面使用) 接口调用都加入head中 页面调用服务接口 从cookie取信息 Node调用服务接口 从cookie取信息