kd

koa-deploy

Template for koa2

Showing:

Popularity

Downloads/wk

4

Maintenance

No Maintenance Data Available

Package

Dependencies

3

Size (min+gzip)

37.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

koa-deploy (for koa2)

Build Status npm version license

Github - koa-deploy

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
  1. auto open in browser (option)
  2. 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

http://localhost/api/todo

POST, PUT, PATCH

http://localhost/api/todo

{
  "id": "todo2",
  "item": "Take care.",
  "done": true
}

DELETE

http://localhost/api/todo

{
  "id": "todo2"
}

Feature

  • koa-deploy Cli
  • gulp task
  • mocha test

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100