i5ting/koa-generator
i5ting/koa-generator has 964 GitHub stars and 108 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-11 19:11 UTC. Last push 2023-02-07.
Koa' application generator for 1.x and 2.x( Express-style and support all middlewares include async/await )
What you can do
- Support koa 1.x(supported)
- Support koa 2.x(koa middleware supported,need Node.js 7.6+ ,babel optional)
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalkoa-generator
Koa application generator.
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
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
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,995 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,596 starsreact/react
The library for web and native user interfaces.
252,503 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,534 stars