ApiBoot Admin
Examples of scaffolding program to address next-generation interface services on the basis of the framework "ApiBoot" before and after separation management platform.
Source
ApiBoot Admin:https://gitee.com/minbox-projects/api-boot-admin
ApiBoot:https://gitee.com/minbox-projects/api-boot
If you like, please give warehouse a star, very grateful for the support open source! ! !
I. birth
In order to give ApiBoot
users demonstrate the integration of the various components of use, thus ApiBootAdmin
it was born! ! !
As ApiBoot
is written in pure Java back-end components of the basic framework, in order to combine the actual development scenario, it will be vue-element-admin
integrated into ApiBootAdmin
the show as a front end, in order to create a simple 前后端分离
demo environment.
Tips: You can
admin-services
project fromApiBootAdmin
independent service as an interface due to internal unified configuration provides some commonly used constants, foundation, etc., can second development on its basis.
II. Source directory
ApiBootAdmin
It is a demonstration project before and after separation.
1. The interface section (admin-services)
Interface provides the background for the front-end framework supporting data, and full use of ApiBoot
components within provided by the written component uses the following list (click directly take you to the assembly's official documentation):
- ApiBoot OAuth
- ApiBoot Security
- ApiBoot Logging
- ApiBoot Logging Admin
- ApiBoot MyBatis Enhance
- ApiBoot MyBatis Enhance Codegen
- ApiBoot MyBatis Pageable
- ApiBoot Swagger
- ApiBoot DataSource Switch
- ApiBoot Resource Load
- ApiBoot Rate Limiter
- ApiBoot Quartz
- ApiBoot Aliyun Mail
- ApiBoot Aliyun OSS
- ApiBoot Aliyun SMS
- ApiBoot Message Push
2. The front end portion (admin-ui)
Front-end flower pants provide the vue-element-admin
integration framework, using detailed please visit vue-element-admin
the official documentation .
Log server (admin-log-server)
Based ApiBootLoggingAdmin
components are built for service acquisition interface ( admin-services
) all the generated log information recorded in the database, and ( 请求日志
, , ).链路日志
全局日志
III. Operating Environment
- JDK 1.8+
- MySQL 5.5+
- NodeJs 10.18.0
- 6.13.4 asl
IV. Local operation
1. Create a database
Please copy the warehouse api-boot-admin.sql contents of the script to create the database itself locally.
2. Download Source
git clone [email protected]:minbox-projects/api-boot-admin.git
3. Compile the project
# 进入api-boot-admin目录
➜ cd api-boot-admin
# 在api-boot-admin根目录打包项目
➜ api-boot-admin git:(master) ✗ mvn clean package
4. Start logging service
➜ api-boot-admin git:(master) ✗ cd admin-log-server
➜ admin-log-server git:(master) ✗ java -jar target/admin-log-server-0.1.0.RELEASE.jar
5. Start Interface
➜ api-boot-admin git:(master) ✗ cd admin-services
➜ admin-services git:(master) ✗ java -jar target/admin-services-0.1.0.RELEASE.jar
6. Run background
# 安装npm依赖包
➜ admin-ui git:(master) ✗ npm install
# 运行开发环境
➜ admin-ui git:(master) ✗ npm run dev
After the successful launch of the background, visit http: // localhost: 9527 / can see the following interface:
In the
api-boot-admin.sql
user information database logon script.Username: hengboy, Password: 123456
Home is just an example of the chart component. For dynamic data can be read to understand
vue-element-admin
.
Function within the module is already complete, the interface used in admin-services/org.minbox.framework.api.boot.admin.api.SystemUserApi
the controller, view the source code can understand the ApiBoot
use of the individual components.