generator-koa2-gugu

1.0.4 • Public • Published

generator-koa2-gugu

A yo generator with koa2 from gugutech.

NPM Version Coverage Status Build Status Downloads Dependency Status License

Installation

We do not use babel to convert. So please make sure you use Node verdion > 7.3.0 to run generated project.

First, install Yeoman and generator-koa2-gugu using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-koa2-gugu

Then generate your new project:

yo koa2-gugu

What do you get?

Scaffolds out a complete generator directory structure for you:

.
├── .gitignore
├── .jshintrc
├── README.md
├── app.js
├── lib
│   ├── const
│   │   └── index.js
│   ├── controllers
│   │   └── index.js
│   ├── db
│   │   ├── mysql.js
│   │   └── redis.js
│   ├── index.js
│   ├── logger
│   │   └── index.js
│   ├── middlewares
│   │   ├── filter.js
│   │   ├── koa-log4js.js
│   │   ├── request-id.js
│   │   └── x-response-time.js
│   ├── models
│   │   └── index.js
│   ├── routes
│   │   └── index.js
│   ├── schemas
│   │   └── index.js
│   ├── services
│   │   └── index.js
│   └── utils
│       ├── helper.js
│       └── resp-code-handler.js
├── package.json
├── pm2.json
└── public

Run the demo

After the installation, we could run script to start server (http://localhost:2017).

npm start

Versions

1.0.0

The formal version of this generator. Works properly.

Will keep eyes on module update.

Getting To Know Gugutech

Gugutech is cool team.

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

License

MIT © Bo Li (solee.me)

Package Sidebar

Install

npm i generator-koa2-gugu

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • solee