generator-hiroki

0.2.3 • Public • Published

generator-hiroki NPM version Build Status Dependency Status

Generate Rest api using hiroki

Installation

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

npm install -g yo
npm install -g generator-hiroki

Then generate your new project:

yo hiroki

Generate model

Also you can generate a new model in proyect:

 
yo hiroki:model

Generate decorator

yo hiroki:decorator

About the structure

  • The logic of your application should be contained in these folders:
lib/
├── decorators
│   ├── index.js
│   └── user.js
├── logger.js
├── models
│   ├── index.js
│   └── user.js
└── routes
    ├── auth.js
    ├── extract-jwt.js
    ├── home.js
    ├── index.js
    └── users.js
  • configuration:
config/
└── public.js
.env

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.

Hiroki Documentation

Documentation here

License

MIT © percho

Package Sidebar

Install

npm i generator-hiroki

Weekly Downloads

9

Version

0.2.3

License

MIT

Unpacked Size

32.9 kB

Total Files

34

Last publish

Collaborators

  • percho