koa-deploy
v2.3.8
Published
Template for koa2
Downloads
40
Readme
koa-deploy (for koa2)
Tech Stack
- template for koa2
- ES6/ES7 with Babel
- ejs or jade(pug) template
- mocha
- gulp
- pm2
Koa Plugin
- koa-router
- koa-views
- koa-bodyparser
- koa-compose
- koa-logger
- koa-mount
- koa-static
- koa-convert
Getting Start
npm install koa-deploy -g
koa-deploy -i PROJECT-NAME
cd PROJECT-NAME
npm install
Run
Production
Start with pm2.
npm start
- auto open in browser (option)
- http://127.0.0.1/
Stop the server.
npm run stop
Development
npm run dev
Directory
master
.
├── .babelrc
├── README.md
├── client
├── start.js
├── src
│ ├── middleware
│ ├── public
│ ├── routes
│ ├── view
│ └── app.js
├── package.json
└── test
└── test.spec.js
API example
GET
POST, PUT, PATCH
{
"id": "todo2",
"item": "Take care.",
"done": true
}
DELETE
{
"id": "todo2"
}
Feature
- [x] koa-deploy Cli
- [x] gulp task
- [x] mocha test
License
MIT