# rokio-crud-gen

> rokio CLI

Latest version **0.2.5** (published 2022-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install rokio-crud-gen
pnpm add rokio-crud-gen
yarn add rokio-crud-gen
bun add rokio-crud-gen
```

Provides the command `rokio`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2022-10-21 |
| First published | 2022-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gengiskan |
| Maintainers | gengiskan |

## Links

- npm: https://www.npmjs.com/package/rokio-crud-gen
- Homepage: https://github.com/precode-git/rokio-crud-gen
- npm.io page: https://npm.io/package/rokio-crud-gen

## Recent versions

- 0.2.5 (latest) — 2022-10-21
- 0.2.4 — 2022-10-21
- 0.2.3 — 2022-10-21
- 0.2.2 — 2022-10-10
- 0.2.1 — 2022-10-10
- 0.2.0 — 2022-10-10
- 0.1.1 — 2022-10-07
- 0.1.0 — 2022-10-03
- 0.0.12 — 2022-10-03
- 0.0.11 — 2022-10-03
- 0.0.10 — 2022-10-03
- 0.0.9 — 2022-10-03
- 0.0.8 — 2022-10-03
- 0.0.7 — 2022-10-03
- 0.0.6 — 2022-10-03
- … 5 more at https://npm.io/package/rokio-crud-gen/versions

## README

# Rokio CLI

Welcome to Rokio CLI.

## Preparation

Create src/paths.json with content:

```shell
{
    "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

```shell
Create new Crud
Commands: generate:crud ; gcrud
Ex: npx rokio-crud-gen gcrud User
```

```shell
Create new Entity in *pathEntity*
Commands: generate:entity ; gent ; entity
Ex: $ npx rokio-crud-gen gent User
```

```shell
Create new Model in *pathModel*
Commands: generate:model ; gmodel ; model
Ex: $ npx rokio-crud-gen gmodel User
```

```shell
Create new Usecase in *pathUsecase*
Commands: generate:usecase ; guse ; usecase
Ex: $ npx rokio-crud-gen gcase User
```

```shell
Create new Repository in *pathRepository*
Commands: generate:repository ; grepo ; repository
Ex: $ npx rokio-crud-gen grepo User
```

```shell
Create new Protocol in *pathProtocol*
Commands: generate:protocol ; gprot ; protocol
Ex: $ npx rokio-crud-gen gprot User
```

```shell
Create new Service in *pathService*
Commands: generate:service ; gserv ; service
Ex: $ npx rokio-crud-gen gserv User
```

```shell
Create new Controller in *pathController*
Commands: generate:controller ; gctr ; controller
Ex: $ npx rokio-crud-gen gctr User
```

```shell
Create new MongoDB-Repo in *pathMongodb*
Commands: generate:mongo ; gmongo ; mongo
Ex: $ npx rokio-crud-gen gmongo User
```

```shell
Create new Route in *pathRoute*
Commands: generate:route ; groute ; route
Ex: $ npx rokio-crud-gen groute User
```

# License

MIT - see LICENSE

---
_Source: https://npm.io/package/rokio-crud-gen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
