This CLI works with templates, the templates are created by I. Those templates are stock in the project directory templates. So if you want, you can modify all the entire project for your use. Enjoy it.
1 - Clone this project
2 - Go to project location
3 - Into bash prompt write:
npm install (wait for installation)
npm link (This is for now)
This create a system link for Windows or Linux, is not significative the execution order.
1 - Go to the project folder
2 - Into the console write:
genb {language} {type} {name}
Where {language} is php or node for now, {type} is app, controller or model and name, well that what you wants. ** Php is under development.
1 - genb php app base
This create a php app with name base
2 - genb php controller User
this create a php file with name UserController
3 - genb php model User
This create a php file with name UserModel
4 - genb php repository User
This create a php file with name UserRepository
1 - genb node app base
This create a node app with name base
2 - genb node controller User
This create a node js file with name UserController
3 - genb node model User
This create a node js file with name UserModel
4 - genb node repository User
This create a node js file with name UserRepository
core
--> CliHandler.js
--> Generator.js
templates
--> php
--> base
--> *
--> controller
--> controller.php
--> model
--> model.php
--> repository
--> repository.js
--> node
--> base
--> *
--> controller
--> controller.js
--> model
--> model.js
--> repository
--> repository.js
index.js
package.json
README.md
Open Source License, MIT
Alejandro Rodriguez Toledo (artoledo91@gmail.com)