Skip to content

legloo/generator-yhkoa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-yhkoa

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]

A Restful API Server based on Koajs

Dependencies

Installation

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

npm install -g yo
npm install -g generator-yhkoa

Then generate your new project:

yo yhkoa [appName]

Commands

Initialize App

mkdir helloWorld
cd helloWorld
yo yhkoa [appName]

Install Dependencies

yarn install

or

npm install

Add API

yo yhkoa:api [apiName] [endpoint=/xxx/xxx] [--socket] [--image]

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.