1 Star 0 Fork 103

王云亮/MCloud

forked from heyuxian/MCloud 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0
# MCloud - 微服务基础设施 [![Build Status](https://www.travis-ci.org/heyuxian/mcloud.svg?branch=master)](https://www.travis-ci.org/heyuxian/mcloud) ## 项目简介 MCloud 是基于Spring Cloud,提供了项目中常用的基础设施: - **mcloud-eureka** 服务注册与发现中心 - [**mcloud-oauth-server**](https://github.com/heyuxian/mcloud-oauth2-server) 基于Spring OAuth2实现的OAuth2认证服务端 - **mcloud-uia** API 统一登录中心 - **mcloud-apigw** 基于Spring cloud zuul 实现的api网关 - **mcloud-config** 统一配置中心 - **mcloud-file-storage** 文件存储中心 - **mcloud-logs** 日志收集与分析中心 - **mcloud-blog** Demo Project 其他模块: - [mcloud-parent](https://github.com/heyuxian/mcloud-parent) maven 公用依赖 - [mcloud-common](https://github.com/heyuxian/mcloud-common) 项目公用工具类 - [mcloud-data](https://github.com/heyuxian/mcloud-data) 数据存储相关 - [Code Generator](https://github.com/heyuxian/code-generator) 用于 Intellij-IDEA 的代码生成器插件 UI界面: - [mcloud-ui](https://github.com/heyuxian/mcloud-ui) 基于[CoPilot](https://github.com/misterGF/CoPilot) ,使用 vue+node所开发的博客前端系统 ## 环境依赖 - **JDK** 1.8 以上 - **IDE** 请安装对应IDE的**lombok**插件 - **数据库** 使用flywaydb进行数据库脚本的版本管理,需执行flywaydb的相关maven命令 ## 快速使用 **下载项目** ``` git clone https://github.com/heyuxian/mcloud.git cd 项目目录/mcloud ``` **初始化数据库** 使用mysql客户端或其它你喜欢的工具创建数据库(默认数据库名称为db_blog): ```shell CREATE DATABASE IF NOT EXISTS db_blog DEFAULT CHARSET utf8 COLLATE utf8_general_ci; ``` 修改flywaydb 插件参数: - mcloud-blog/pom.xml ```xml <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>4.2.0</version> <configuration> <user>root</user> <password>root</password> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://localhost:3306/db_blog</url> </configuration> </plugin> ``` 修改Spring 配置文件中的数据库用户名及密码: - mcloud-blog: application-dev.yml 执行flywaydb相关命令初始化数据库: ```shell mvn flyway:clean flyway:migrate ``` **启动OAuth Server:** [详细配置](https://github.com/heyuxian/mcloud-oauth2-server) ``` git clone https://github.com/heyuxian/mcloud-oauth2-server mvn clean install mvn flyway:clean flyway:migrate mvn spring-boot:run ``` 访问地址: http://localhost:8043/uaa/swagger-ui.html **启动认证中心:** [详细配置](mcloud-uia/README.md) ``` cd mcloud-uia mvn clean install mvn spring-boot:run ``` 访问地址: http://localhost:8443/uia/swagger-ui.html **启动博客服务:** [详细配置](mcloud-blog/README.md) ``` cd mcloud-blog mvn clean install mvn spring-boot:run ``` 访问地址: http://localhost:8081/swagger-ui.html ## 代码生成器 目前项目已经支持 `Intellij plugin` 的方式进行基础代码的生成,具体请看 [Code Generator](https://github.com/heyuxian/code-generator). ## 问题及建议 若是对于本项目有任何问题或建议,可以在github上提Issue,如果是码云,可以直接发表评论,提Issue或是直接给我发私信.同时,如果你愿意参与开发,欢迎提PR. ## License ``` Copyright 2017 http://www.javaroad.me Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```

简介

基于Spring Cloud实现的简单微服务架构博客系统 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhiruoyu90/mcloud.git
git@gitee.com:zhiruoyu90/mcloud.git
zhiruoyu90
mcloud
MCloud
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385