koa-generator
fullstack koa generator for koa 1.x and 2.x
Last updated 7 years ago by langshu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa-generator -g
SYNC missed versions from official npm registry.

koa-generator

http://koajs.com/

Koa application generator.

NPM Version NPM Downloads

Features

  • Express-style
  • Support koa 1.x(supported)
  • Support koa 2.x(koa middleware supported,need Node.js 7.6+ ,babel optional)

Installation

$ npm install -g koa-generator

with 2 commands

  • koa (Support koa 1.x)
  • koa2 (Support koa 2.x)

Quick Start 1.x

The quickest way to get started with koa is to utilize the executable koa(1) to generate an application as shown below:

Create the app:

$ koa /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Rock and Roll

$ npm start

Quick Start 2.x

The quickest way to get started with koa is to utilize the executable koa2(1) to generate an application as shown below:

Create the app:

$ koa2 /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Rock and Roll

$ npm start

more detail see koa2-demo

Command Line Options

This generator can also be further configured with the following command line flags.

-h, --help          output usage information
-V, --version       output the version number
-e, --ejs           add ejs engine support (defaults to jade)
    --hbs           add handlebars engine support
-n, --nunjucks      add nunjucks engine support
-H, --hogan         add hogan.js engine support
-c, --css <engine>  add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
    --git           add .gitignore
-f, --force         force on non-empty directory

目前选项-c还没有实现

Git Branch Details

  • master = koa generator
  • tpl = koa 1.x template
  • tpl_2.x = koa 2.x template

License

MIT

Current Tags

  • 1.1.17                                ...           latest (7 years ago)

22 Versions

  • 1.1.17                                ...           7 years ago
  • 1.1.16                                ...           9 years ago
  • 1.1.15                                ...           9 years ago
  • 1.1.14                                ...           9 years ago
  • 1.1.13                                ...           9 years ago
  • 1.1.12                                ...           9 years ago
  • 1.1.11                                ...           9 years ago
  • 1.1.10                                ...           9 years ago
  • 1.1.9                                ...           9 years ago
  • 1.1.8                                ...           9 years ago
  • 1.1.7                                ...           9 years ago
  • 1.1.6                                ...           9 years ago
  • 1.1.5                                ...           10 years ago
  • 1.1.4                                ...           10 years ago
  • 1.1.3                                ...           10 years ago
  • 1.1.2                                ...           10 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.4                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 8
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |