Awesome Baucis api generator.
First, install Yeoman and generator-baucis using npm (we assume you have pre-installed node.js).
sudo npm i -g yo generator-baucis
Then generate your new project:
yo baucis
- 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.
- 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
│ └── index.js
└── utils
└── middlewares
└── extract-jwt.js
- configuration:
config/
└── public.js
.env
in each folder we can add new files but they must be exported in the index.js and match the decorator name with the mongoose models
by default the generator provides sample files: models, decorators and custom routes
Node v4 or higger
- v0.1.5 - bugfix auth route and favico, update mongoose connection.
- v0.1.0 or higger support jwt validation.
- v0.2.1 update yeoman generator, bugfix and remove unnecessary dependencies
MIT © ivanhuay