1 Star 0 Fork 0

Broken / cloud-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SpringCloud分布式微服务项目

Build Status Downloads Coverage Status

介绍

旨在提供一个最基础的CRUD模板,并没与太复杂的业务流程,想让初学微服务或者想要找个Vue+Node前后端分离项目的同学有一个案例参考。大家可以基于此项目继续扩展,或者看此项目和源码和文档自己尝试开发前后端分离的项目。

如果此项目对大家有帮助,欢迎右上角star支持作者

注意:请以批判的角度看此项目,本人也是技术有限,如果你有更好的解决方案请尽快联系我。大牛勿喷

cloud-template: 一套极简的SpringCloud微服务项目模板,没有具体的业务,提供最详细的SpringCloud搭建流程

sct-api: 分布式微服务项目后端接口

sct-app: Vue + Node.js 前端项目

写在前面

简单录制了一个项目启动视频,需要的话可以看下:https://www.bilibili.com/video/av78215622

在开始此项目前,请先学习这个基础项目模板 cloud-template ,并仔细阅读以下开发文档:

从零开始搭建Spring Cloud脚手架

如何食用vue-admin-template前端项目

Spring Cloud Template

  • 一套极简的Spring Cloud微服务项目模板,开箱即用,方便扩展

  • 基于 Spring Cloud Greenwich、Spring Boot 的微服务项目

  • 基于 vue-admin-template。使用Vue框架,快速入门前后端分离式开发模式

  • 详细的开发文档

核心依赖

依赖 版本
Spring Boot 2.1.5.RELEASE
Spring Cloud Greenwich.SR1
Spring Security OAuth2 2.3.4.RELEASE
tk.mybatis 4.1.5
vue-admin-template 4.1.0
Swagger2 2.9.2

模块说明

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]

启动说明

  1. 修改本地hosts文件,添加如下内容(可以通过 SwitchHosts 快速修改)。
127.0.0.1 sct-eureka
127.0.0.1 sct-mysql
127.0.0.1 sct-auth
  1. 修改sct-config/src/main/resources/下配置文件中的数据库连接信息,主要涉及sct-admin-biz-dev.ymlsct-auth-dev.yml两个文件

  2. 导入项目根目录下的base.sql,建立数据库

默认密码请参看sct-admin-biz/src/test/PasswordEncoderTest.java测试类

Username Password
tycoding tycoding
admin admin
test test
  1. 严格按照如下顺序依次启动服务模块
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网关
  1. 启动前端项目
$ cd sct-app
$ npm install
$ npm run dev

请喝果汁

如果觉得这篇文章、Demo对你的学习有所帮助,可以请作者喝一杯果汁~~

预览

联系

QQGroup:671017003

QQGroup2:490303233

MIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/sindre/cloud-template.git
git@gitee.com:sindre/cloud-template.git
sindre
cloud-template
cloud-template
master

搜索帮助