# 基于Java和Spring Boot的后端零代码crudapi全部MIT开源

# crudapi

# 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 (opens new window) crudapi-admin-web (opens new window)
crudapi (main) Java源码(1.0稳定版) 开源 crudapi (opens new window) crudapi (opens new window)
crudapi (ft-crudapi-2) Java源码(2.0开发中) 开源 crudapi (opens new window) crudapi (opens new window)
crudapi-example Java集成SDK Demo 开源 crudapi-example (opens new window) crudapi-example (opens new window)

# 环境搭建

# 安装JDK

官网https://www.oracle.com/java/technologies/javase-downloads.html (opens new window)采用1.8版本(Java SE 8,Java SE 8u281 is the latest release for the Java SE 8 Platform.)安装即可。

java -version
java version "1.8.0_241"

# 安装maven

官网http://maven.apache.org (opens new window)采用最新3.x稳定版安装即可,经验证版本3.6是可以的。

mvn -v
Apache Maven 3.6.3

# 代码仓库

github地址
https://github.com/crudapi/crudapi (opens new window)

gitee地址
https://gitee.com/crudapi/crudapi (opens new window)

由于网络原因,github可能速度慢,改成访问gitee即可,代码同步更新。

# 下载代码

git clone git@github.com:crudapi/crudapi.git

# 编译

mvn clean install -Dmaven.test.skip=true

#aliyun mirror
mvn clean install -Dmaven.test.skip=true -s mirror-settings.xml

# build

mvn clean install -Dmaven.test.skip=true -s settings.xml

# downloadSources

mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true -s settings.xml

# Mysql

# Import database to crudapi

./database/mysql/crudapi-mysql.sql

# Config MySql properties

src/crudapi-service/main/resources/application.properties

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

# Postgresql

# Import database to crudapi.public

./database/postgresql/crudapi-pgsql.sql

# Config Postgresql properties

src/crudapi-service/main/resources/application.properties

spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/crudapi
spring.datasource.username=postgres
spring.datasource.password=postgres

# oralce

SELECT * FROM ALL_OBJECTS WHERE OWNER = 'CRUDAPI';
purge recyclebin;

# run

java -jar ./target/crudapi-service-1.6.0.jar

# swagger

http://127.0.0.1:8888/swagger-ui.html (opens new window)

# user

superadmin
1234567890

# docker

docker build -t crudapi-service:latest .

# 小结

本文主要介绍了项目背景和技术选型,基于Spring boot创建了crudapi后台项目,并且本地运行成功。

# crudapi简介

crudapi是crud+api组合,表示增删改查接口,是一款零代码可配置的产品。使用crudapi可以告别枯燥无味的增删改查代码,让您更加专注业务,节约大量成本,从而提高工作效率。crudapi的目标是让处理数据变得更简单,所有人都可以使用!无需编程,通过配置自动生成crud增删改查RESTful API,提供后台UI管理业务数据。基于主流的开源框架,拥有自主知识产权,支持二次开发。

# demo演示

crudapi属于产品级的零代码平台,不同于自动代码生成器,不需要生成Controller、Service、Repository、Entity等业务代码,程序运行起来就可以使用,真正0代码,可以覆盖基本的和业务无关的CRUD RESTful API。

table 表单对应不同的对象

table 表关系图显示不同对象之间的关系

customer 业务数据操作

官网地址:https://crudapi.cn (opens new window)
测试地址:https://demo.crudapi.cn/crudapi/login (opens new window)

# 目录

# 基于Java和Spring Boot的后端零代码crudapi项目实战之环境搭建(一)

# 基于Java和Spring Boot的后端零代码crudapi全部MIT开源