| | # crudapi二次开发demo |
| |
|
| | ## 语言 |
| | [English](README.md) |
| |
|
| | ### crudapi👋 |
| | crudapi is a combination of crud and api, which stands for create, delete, update and retrieve interface. It is a zero-code product by configuring. crudapi allows you to focus on your business, save a lot of money, and improve your work efficiency by eliminating the tedious process of crud code. crudapi aims to make working with data easier and is free for everyone! |
| |
|
| | ### 增删改查接口👋 |
| | crudapi是crud+api组合,表示增删改查接口,是一款零代码可配置的产品。使用crudapi可以告别枯燥无味的增删改查代码,让您更加专注业务,节约大量成本,从而提高工作效率。crudapi的目标是让处理数据变得更简单,所有人都可以免费使用! |
| |
|
| | ## GIT地址 |
| | 名称 | 类型 | 授权 | GitHub仓库 | Gitee仓库 |
| | --- | --- | --- | --- | --- |
| | crudapi-admin-web | Vue Qusar源码 | 开源 | [crudapi-admin-web](https://github.com/crudapi/crudapi-admin-web) | [crudapi-admin-web](https://gitee.com/crudapi/crudapi-admin-web) |
| | crudapi (main)| Java源码(1.0稳定版) | 开源 | [crudapi](https://github.com/crudapi/crudapi) | [crudapi](https://gitee.com/crudapi/crudapi) |
| | crudapi (ft-crudapi-2)| Java源码(2.0开发中) | 开源 | [crudapi](https://github.com/crudapi/crudapi/tree/ft-crudapi-2) | [crudapi](https://gitee.com/crudapi/crudapi/tree/ft-crudapi-2) |
| | crudapi-example| Java集成SDK Demo | 开源 | [crudapi-example](https://github.com/crudapi/crudapi-example) | [crudapi-example](https://gitee.com/crudapi/crudapi-example) |
| |
|
| | ## Mysql |
| | ### 创建数据库模式crudapi |
| |
|
| | ### 配置数据库信息 |
| | src/main/resources/application.properties |
| | ```bash |
| | spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver |
| | spring.datasource.url=jdbc:mysql://localhost:3306/crudapi?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true |
| | spring.datasource.username=root |
| | spring.datasource.password=root |
| | |
| | #通过flyway自动创建表 |
| | spring.flyway.locations=classpath:cn/crudapi/core/db/migration/mysql |
| | ``` |
| |
|
| | ## Postgresql |
| | ### 新建数据库模式crudapi.public |
| |
|
| | ### 配置数据库信息 |
| | src/main/resources/application.properties |
| | ```bash |
| | spring.datasource.driverClassName=org.postgresql.Driver |
| | spring.datasource.url=jdbc:postgresql://localhost:5432/crudapi |
| | spring.datasource.username=postgres |
| | spring.datasource.password=postgres |
| | |
| | #通过flyway自动创建表 |
| | spring.flyway.locations=classpath:cn/crudapi/core/db/migration/postsql |
| | ``` |
| |
|
| | ## Oracle |
| | ### 新建数据库模式XEPDB1.crudapi |
| |
|
| | ### 配置数据库信息 |
| | src/main/resources/application.properties |
| | ```bash |
| | spring.datasource.url=jdbc:oracle:thin:@//localhost:1521/XEPDB1 |
| | spring.datasource.driverClassName=oracle.jdbc.OracleDriver |
| | spring.datasource.username=crudapi |
| | spring.datasource.password=crudapi |
| | spring.datasource.initialization-mode=always |
| | spring.datasource.schema=classpath:schema.sql |
| | |
| | #通过flyway自动创建表 |
| | spring.flyway.locations=classpath:cn/crudapi/core/db/migration/oracle |
| | ``` |
| |
|
| | ## MS SQL Server |
| | ### 新建数据库模式crudapi.dbo |
| |
|
| | ### 配置数据库信息 |
| | src/main/resources/application.properties |
| | ```bash |
| | spring.datasource.url=jdbc:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=crudapi |
| | spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | spring.datasource.username=sa |
| | spring.datasource.password=Mssql1433 |
| | |
| | #通过flyway自动创建表 |
| | spring.flyway.locations=classpath:cn/crudapi/core/db/migration/mssql |
| | ``` |
| |
|
| | ### 下载安装依赖包 |
| | ```bash |
| | cd lib |
| | ./download.sh |
| | ``` |
| |
|
| | ### 编译 |
| | ```bash |
| | cd crudapi-example |
| | mvn clean install -Dmaven.test.skip=true |
| | |
| | #阿里云 mirror |
| | mvn clean install -Dmaven.test.skip=true -s settings.xml |
| | ``` |
| |
|
| | ### 运行 |
| | ```bash |
| | cd crudapi-example |
| | java -jar ./target/crudapi-example-1.6.2.jar |
| | ``` |
| |
|
| | ### swagger文档 |
| | [http://127.0.0.1:8888/swagger-ui.html](http://127.0.0.1:8888/swagger-ui.html) |
| |
|
| | ### crudapi后台管理WEB |
| | [http://127.0.0.1:8888/crudapi/](http://127.0.0.1:8888/crudapi/) |
| |
|
| | ### API (二次开发) |
| | [API](./API.md) |
| |
|
| | ### crudapi后台管理WEB(二次开发) |
| | #### GitHub仓库 |
| | [https://github.com/crudapi/crudapi-admin-web](https://github.com/crudapi/crudapi-admin-web) |
| |
|
| | #### Gitee仓库 |
| | [https://gitee.com/crudapi/crudapi-admin-web](https://gitee.com/crudapi/crudapi-admin-web) |
| |
|
| | #### 修改配置 |
| | 修改quasar.conf.js文件中devServer->proxy->target |
| |
|
| | ```javascript |
| | devServer: { |
| | https: false, |
| | port: 8080, |
| | open: true, |
| | proxy: { |
| | "/api/*": { |
| | target: "http://127.0.0.1:8888", |
| | changeOrigin: true |
| | } |
| | } |
| | } |
| | ``` |
| |
|
| | ## 演示 |
| | 演示地址:[https://demo.crudapi.cn/crudapi/](https://demo.crudapi.cn/crudapi/) |
| |
|
| |  |
| | 表单对应不同的对象 |
| |
|
| |  |
| | 表关系图显示不同对象之间的关系 |
| |
|
| |  |
| | 业务数据操作 |
| |
|
| | ## 联系方式 |
| | #### 邮箱 |
| | admin@crudapi.cn |
| |
|
| | #### QQ |
| | 1440737304 |
| |
|
| | #### QQ群 |
| | 632034576 |
| |
|
| | #### 微信 |
| | undefinedneqnull |
| |
|
| | <div align="left"> |
| | <img width = "200" src="./img/crudapiweixin.jpeg"> |
| | </div> |
| |
|
| | #### 微信群 |
| | <div align="left"> |
| | <img width = "200" src="./img/weixinqun.png"> |
| | </div> |
| |
|
| | 如有任何问题,欢迎咨询和交流! |
| |
|
| |
|