# codefaster-dubbo-template

> springboot、dubbo、nacos项目初始化模版

Latest version **0.0.21** (published 2022-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install codefaster-dubbo-template
pnpm add codefaster-dubbo-template
yarn add codefaster-dubbo-template
bun add codefaster-dubbo-template
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2022-06-10 |
| First published | 2021-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | libiqi |
| Maintainers | code-faster |
| Keywords | Java, dubbo, springboot, nacos, maven, java template |

## Links

- npm: https://www.npmjs.com/package/codefaster-dubbo-template
- Repository: https://github.com/Code-Faster/codefaster-dubbo-template
- Homepage: https://github.com/Code-Faster/codefaster-dubbo-template#readme
- Issues: https://github.com/Code-Faster/codefaster-dubbo-template/issues
- npm.io page: https://npm.io/package/codefaster-dubbo-template

## Dependencies (1)

- [parse-gitignore](https://npm.io/package/parse-gitignore.md) ^1.0.1

## Recent versions

- 0.0.21 (latest) — 2022-06-10
- 0.0.20 — 2022-06-10
- 0.0.19 — 2022-02-23
- 0.0.18 — 2022-01-10
- 0.0.17 — 2022-01-09
- 0.0.16 — 2022-01-09
- 0.0.14 — 2022-01-09
- 0.0.13 — 2022-01-08
- 0.0.12 — 2022-01-07
- 0.0.11 — 2022-01-07
- 0.0.10 — 2022-01-06
- 0.0.9 — 2022-01-04
- 0.0.8 — 2022-01-04
- 0.0.7 — 2022-01-04
- 0.0.6 — 2022-01-04
- … 5 more at https://npm.io/package/codefaster-dubbo-template/versions

## README

# codefaster-dubbo-template

code-faster 模版项目，技术栈为 spring boot、dubbo、nacos、redis、mongodb、mysql

### 项目 GUI 地址，提供基于任意语言任意模版的 项目 CURD 生成以及测试部署一体化

https://github.com/code-faster/code-faster

## src/index.ts 对外提供以下功能

```
// 初始化项目
init: (params: CodeFaster.Params) => void;
// 更新项目config结构，并返回结构JSON
updateProjectConfig: () => CodeFaster.ConfigJSON | undefined;
// 根据参数生成POJO
generatorPojo: (params: CodeFaster.Params) => void;
// 根据参数生成VO
generatorVO: (params: CodeFaster.Params) => void;
// 根据参数生成Service层
generatorService: (params: CodeFaster.Params) => void;
// 根据参数生成ServiceImpl层
generatorServiceImpl: (params: CodeFaster.Params) => void;
// 根据参数生成Controller层
generatorController: (params: CodeFaster.Params) => void;
// 根据参数生成Mapper层
generatorMapper: (params: CodeFaster.Params) => void;
// 根据参数生成单元测试
generatorUnitTest: (params: CodeFaster.Params) => void;
// 根据POJO路径返回模型类JSON
getModelByPojoPath: (filePath: string) => CodeFaster.SqlTable;
```

## 如何发布自己的模版

### 自定义区域

```
1、package.json
项目的基础信息以及版本信息
2、playground
存放项目初始化文件
3、src/template
项目的 CURD 模版区域
4、.cfignore
项目的初始化文件拷贝需要忽略的地址
```

### package.json 参数

#### name

模版名称，以 codefaster-开始，以-template 结束

#### keywords 第一个关键词将作为模版标记的项目类型，例如：

```
1、Java【后台】
2、Admin【管理系统】
3、Web【含PC、H5、小程序】
4、App【Android、ios】
5、扩展更多语法
```

#### description

```
模版的描述信息
```

#### files

```
指定发布的模版文件
```

#### version

```
当前版本
```

#### license

```
模版 license
```

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