Skip to content

liuxing/koa2-starter-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa2-starter-cli

Koa2 application generator.

Features

  • Custom template engine (e.g. pug, nunjucks, ejs).

  • Use ESLint to lint your code, and custom ESLint preset (e.g. Airbnb, Standard).

  • Routing with koa-router.

  • Parsing request with koa-body.

  • nodemon for development to auto-restart when your files change.

  • formatted Commit message with commitizen.

more detail see: koa2-starter

Installation

$ npm install -g koa2-starter

Usage

$ koa2 init <project-name>

The above command pulls the template from koa2-starter, prompts for some information, and generates the project at <project-name>

Example:

$ koa2 init my-koa
$ cd my-koa
$ git init # Some package needs Git. Of course, you may not need it.
$ npm install
$ npm run dev

koa-cli

License

MIT @ Liu Xing

About

Koa2 application generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published