0.2.1 • Published 7 years ago

generator-rest-koa2 v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

generator-rest-koa-2 NPM version Build Status

koa2 restful

Installation

First, install Yeoman and generator-rest-koa-2 using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-rest-koa2

Then generate your new project:

yo rest-koa2

Scaffolded App

Koa2 REST using :

  • Koa 2
  • Mongodb + Mongoose
  • Babel
  • Asynchronous Functions (Async/Await)
  • restc

Running

Install dependencies

npm install

Start a Local Server

npm start

Run Test

npm test

Building and Running Production Server

npm run prod

Note : Please make sure your MongoDB is running before using npm start or npm run prod

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © nczkevin