apiatizer

1.0.1 • Public • Published

APIATIZER - CLI

This project has as goal, reduce development time spend.

How to install

  1. npm i apiatizer -g

Commands

> apiatizer endpoint:create <model_name>

This command allows you create model, controller and route automatically. You gonna find a few form in order to create

Add param name:

Here, you can add a new param/prop name for the schema <model_name>.

Please, just use a string camelCase for this.

Choose a type :

Now, you need to choose a type for the above parameter. Please just type the number of the option.

In the specific case of the ObjectId inmediatly after, you must to select the model for the dependency relationship.

Be careful with the number option.

Add new param :

Finally, you can choose add new param or close the schema.

Output

The final output is a full schema created for mongoose and their controller, route and relationships.

[HABITS.AI]: Model test created
[HABITS.AI]: Controller test created
[HABITS.AI]: Route test created
[HABITS.AI]: Route test added to _api.routes

Readme

Keywords

none

Package Sidebar

Install

npm i apiatizer

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

27.7 kB

Total Files

17

Last publish

Collaborators

  • leganux