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