8000 GitHub - AlexRToledo/genb-cli: Project base and clases generator.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AlexRToledo/genb-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generetor Base Client - genb cli


Important *

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.

How install it

Steps:

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.

How use it

Steps:

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.

Commands and Descriptions

PHP:

 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

Node

 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

Projects Struture

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

License

Open Source License, MIT

Create bY

Alejandro Rodriguez Toledo (artoledo91@gmail.com)

About

Project base and clases generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0