Code Monkey home page Code Monkey logo

koa-generator's Introduction

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

koa-generator's People

Contributors

i5ting avatar jacky810124 avatar liushigit avatar miaowing avatar sinalvee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.