0.2.5 • Published 2 years ago

rokio-crud-gen v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Rokio CLI

Welcome to Rokio CLI.

Preparation

Create src/paths.json with content:

{
    "pathRepository": "src/data/repository",
    "pathController": "src/presentation/controllers",
    "pathEntity": "src/domain/entities",
    "pathModel": "src/domain/models",
    "pathProtocol": "src/data/protocols",
    "pathMongodb": "src/infra/database/mongodb/repositories",
    "pathRoute": "src/main/routes/admin",
    "pathService": "src/data/services",
    "pathUsecase": "src/domain/usecases",
    "pathAllRepos": "src/main/factory/builders/allRepos.ts",
    "pathMongoRepoBuilder": "src/main/factory/builders/repository/mongo-repository-builder.ts"
}

Update some property will alterate the generation of futures command calls

Commands

Create new Crud
Commands: generate:crud ; gcrud
Ex: npx rokio-crud-gen gcrud User
Create new Entity in *pathEntity*
Commands: generate:entity ; gent ; entity
Ex: $ npx rokio-crud-gen gent User
Create new Model in *pathModel*
Commands: generate:model ; gmodel ; model
Ex: $ npx rokio-crud-gen gmodel User
Create new Usecase in *pathUsecase*
Commands: generate:usecase ; guse ; usecase
Ex: $ npx rokio-crud-gen gcase User
Create new Repository in *pathRepository*
Commands: generate:repository ; grepo ; repository
Ex: $ npx rokio-crud-gen grepo User
Create new Protocol in *pathProtocol*
Commands: generate:protocol ; gprot ; protocol
Ex: $ npx rokio-crud-gen gprot User
Create new Service in *pathService*
Commands: generate:service ; gserv ; service
Ex: $ npx rokio-crud-gen gserv User
Create new Controller in *pathController*
Commands: generate:controller ; gctr ; controller
Ex: $ npx rokio-crud-gen gctr User
Create new MongoDB-Repo in *pathMongodb*
Commands: generate:mongo ; gmongo ; mongo
Ex: $ npx rokio-crud-gen gmongo User
Create new Route in *pathRoute*
Commands: generate:route ; groute ; route
Ex: $ npx rokio-crud-gen groute User

License

MIT - see LICENSE

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago