GithubHelp home page GithubHelp logo

zhanglindeng / cloud-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tycoding/cloud-template

0.0 1.0 0.0 10.42 MB

:laughing: 基于SpringCloud开发的一套极简的分布式微服务项目,使用Vue+Nodejs前后端分离,实现分布式注册中心Eureka、熔断器Hystrix、路由网关Zuul、配置中心Config、链路追踪ZipKin、监控中心SpringBootAdmin

Home Page: https://tycoding.cn

Java 34.28% PLpgSQL 10.81% JavaScript 20.02% HTML 0.37% Vue 30.33% CSS 4.19%

cloud-template's Introduction

SpringCloud分布式微服务项目

Build Status Downloads Coverage Status

介绍

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

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

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

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

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

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

写在前面

在开始此项目前,请先学习这个基础项目模板 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,建立数据库

  3. 严格按照如下顺序依次启动服务模块

EurekaApplication.java -- 服务注册中心
ConfigApplication.java -- 服务配置中心
MonitorApplication.java -- Spring Boot Admin监控
ZipkinApplication.java -- Zipkin链路监控
AdminBizApplication.java -- 系统管理模块
AuthApplication.java -- 授权模块
GatewayApplication.java -- Zuul网关
  1. 启动前端项目
$ cd sct-app
$ npm install
$ npm run dev

预览

联系

QQ交流群:671017003

cloud-template's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.