17koa/koa-generator

Name: koa-generator

Owner: 17koa

Description: Koa' application generator for 1.x and 2.x? Express-style and support all middlewares include async/await ?

Created: 2015-12-04 16:11:25.0

Updated: 2018-05-24 07:44:26.0

Pushed: 2017-09-11 07:35:56.0

Homepage: https://github.com/17koa/koa-generator

Size: 183

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

koa-generator

http://koajs.com/

Koa application generator.

NPM Version NPM Downloads

Features
Installation
m install -g koa-generator

with 2 commands

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:

a /tmp/foo && cd /tmp/foo

Install dependencies:

m install

Rock and Roll

m 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:

a2 /tmp/foo && cd /tmp/foo

Install dependencies:

m install

Rock and Roll

m 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
License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.