generator-hiroki
v0.2.3
Published
Generate Rest api using hiroki
Downloads
13
Maintainers
Readme
generator-hiroki
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
License
MIT © percho