Giter Site home page Giter Site logo

bsonjia / easy-cloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dragonv96/easy-cloud

0.0 0.0 0.0 51.91 MB

基于SpringCloud的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway、elasticsearch、skywalking、springboot-admin、zipkin、redis、mybatis-plus等,集成CI/CD、k8s等自动化,降低项目搭建的时间成本,专注于业务开发。持续更新中

Shell 0.76% JavaScript 28.08% Java 59.61% CSS 0.21% Batchfile 0.51% FreeMarker 10.75% Dockerfile 0.07%

easy-cloud's Introduction

easy-cloud

快速开始

1 开发环境

  • Linux、Mac、Windows 7/8/10 均可

  • git 环境

  • JDK 1.8

  • Maven

  • MySQL 5.7+

2 搭建步骤

1)克隆 develop 分支代码。

git clone -b develop [email protected]:DragonV96/easy-cloud.git

2)将本地依赖打包至本地 maven 仓库

cd easy-cloud
mvn clean && mvn install

3)更改 config 文件夹下对应服务 yaml 配置文件数据库连接配置,如 urlusernamepassword 等。

4)运行 easy-cloud\component-server\nacos\src 下的 Nacos 启动脚本 nacos_startup.cmd,启动 naocs。

5)将更改完毕的配置添加至本地 Nacos 配置中心,文件夹名即为服务对应的 group ,添加完毕后修改本地 bootstrap.yml 文件的 namespace 值为自己 nacos 中的命名空间。

6)依次执行下列数据库脚本初始化数据库。

  • easy-cloud\system-server\file-system\script\file_system.sql
  • easy-cloud\system-server\oauth2\oauth2-server\script\oauth.sql
  • easy-cloud\component-server\distributed-job\script\xxl-job.sql

3 启动顺序

按下述顺序依次启动服务:

1)先启动 Nacos。

2)待 Nacos 启动完毕后,启动 oauth2-server、distributed-job、gateway 等服务。

3)启动 file-system、业务服务等其他服务。

4)最后启动 swagger 聚合文档服务。

项目说明

1 目录结构

└─easy-cloud 项目根目录
  ├─business-server 业务服务
  ├─common 公共依赖模块
  │  └─core 核心模块
  ├─component-server 组件服务
  │  ├─distributed-job 分布式任务调度
  │  ├─gateway 网关
  │  ├─nacos 注册中心/配置中心
  │  └─swagger 聚合文档
  ├─config 配置文件夹
  ├─system-server 系统服务
  │  ├─file-system 分布式文件服务
  │  └─oauth2 授权认证模块
  │      ├─oauth2-client 授权认证客户端依赖
  │      └─oauth2-server 授权认证服务
  └─tool-server
      ├─code-generator 代码生成器
      └─data-generator 数据生成器

2 技术栈

easy-cloud's People

Contributors

dragonv96 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.