SpringCloud Distributed Micro Services
Open Source Address: Cloud-Template Welcome to the upper right corner of the star support
Introduction
It aims to provide a most basic CRUD template, and did too complex business processes, wants beginner or want to find a micro-services Vue + students before and after the end of the separation project Node has a reference case. For this project we can continue to expand, or to see the source code and documentation for this project and try it yourself before and after the end of the separation of the development project.
If the project is to help everyone, welcome to the top right corner of the star support
Note: a critical perspective of this project, and I was limited technology, if you have a better solution, please contact me as soon as possible. Daniel, do not spray
cloud-template
: A minimalist SpringCloud micro-services project template, there is no specific business, providing the most detailed SpringCloud build process
sct-api
: Distributed Micro Services backend interface
sct-app
: Vue + Node.js front-end project
EDITORIAL
At the beginning of this current, first learn the basic project template Cloud-Template , and carefully read the following development documents:
Spring Cloud scaffolding built from scratch
How to eat vue-admin-template front-end project
Spring Cloud Template
-
A minimalist micro Spring Cloud Services project template out of the box, easy to expand
-
Based on Spring Cloud Greenwich, Spring Boot Micro Services
-
Based vue-admin-template. Vue framework used, separate development model front end Quick Start
-
Detailed development documentation
Core dependence
rely | version |
---|---|
Spring Boot | 2.1.5.RELEASE |
Spring Cloud | Greenwich.SR1 |
Spring Security OAuth2 | 2.3.4.RELEASE |
tk.mybatis | 4.1.5 |
view-admin-template | 4.1.0 |
Swagger2 | 2.9.2 |
Module Description
sct-app -- 前端工程[8100]
sct-api
├── sct-admin -- 系统管理模块
├── sct-admin-api -- 系统管理的公共api模块
├── sct-admin-biz -- 系统管理的业务实现模块 [4100]
├── sct-auth -- 授权模块 [4000]
├── sct-common -- 系统公共类模块
├── sct-config -- 配置中心 [8888]
├── sct-eureka -- Eureka服务注册与发现 [8761]
├── sct-gateway -- Zuul网关 [9999]
├── sct-monitor -- Spring Boot Admin监控 [3000]
├── sct-zipkin -- Zipkin链路监控 [3001]
复制代码
Start-up instructions
- Modify the local
hosts
file, add the following (by SwitchHosts quickly modify).
127.0.0.1 sct-eureka
127.0.0.1 sct-mysql
127.0.0.1 sct-auth
复制代码
-
Modify the
sct-config/src/main/resources/
configuration file in the database connection information, relatessct-admin-biz-dev.yml
andsct-auth-dev.yml
two files -
Import projects under the root directory
base.sql
, the establishment of a database
The default password see sct-admin-biz/src/test/PasswordEncoderTest.java
the test class
Username | Password |
---|---|
tycoding | tycoding |
admin | admin |
test | test |
- In strict accordance with the following order to start the service module
1. EurekaApplication.java -- 服务注册中心
2. ConfigApplication.java -- 服务配置中心
3. MonitorApplication.java -- Spring Boot Admin监控
4. ZipkinApplication.java -- Zipkin链路监控
5. AdminBizApplication.java -- 系统管理模块
6. AuthApplication.java -- 授权模块
7. GatewayApplication.java -- Zuul网关
复制代码
- Launch the front end of the project
$ cd sct-app
$ npm install
$ npm run dev
复制代码