cleancrud
v0.0.14
Published
Clean crud generator CLI
Downloads
5
Readme
ncrud CLI
Gerador de CRUD via linha de comando a partir de um arquivo de definições no formato JSON.
O que será gerado
Serão gerados os arquivos necessários para o CRUD de uma entidade utilizando TypeOrm.
Estes arquivos estão no padrão da arquitetura limpa (Clean Code), contendo os testes unitários básicos de inclusão, alteração, busca e exclusão.
O código gerado poderá ser utilizado em aplicações Client ou Server.
Não serão gerados arquivos do client da camada de apresentação, o qual deverá ser criado utilizando qualquer framework de mercado (Vuejs, React, Angular e etc.).
Como utilizar
ncrud --target=[DIR DE DESTINO] --entityPath=[CAMINHO ARQUIVO DEFINIÇÃO JSON] [NOME DA ENTIDADE]
Exemplo:
ncrud generate --target=./teste --entityPath=./sample/company.json Company
Check out the documentation at https://github.com/infinitered/gluegun/tree/master/docs.
Publishing to NPM
To package your CLI up for NPM, do this:
$ npm login
$ npm whoami
$ npm test
$ npm run build
$ npm publish
License
MIT - see LICENSE