spring-cloud/script/quick-start/README.md

40 lines
937 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 快速启动
## 目标
快速体验Cloud版本的特性不需要有spring cloud的知识依赖。
## 前置条件
因为涉及到数据库实例的配置因此本指引通过docker启动mysql、redis、nacos等基础组建。
请使用docker compose v2
## 启动基础设施
```shell
cd ./script/quick-start/
docker-compose up -d
```
也可以使用IDEA打开 `script/quick-start/docker-compose.yml`,点击 `services` 签名的绿色箭头启动所有容器。
## 按顺序启动服务
跟普通`spring-boot`应用一样,使用`IDEA`启动应用。可以使用 `IDEA``Services`启动。
### 启动网关
`cn.iocoder.yudao.gateway.GatewayServerApplication`
### 启动基础模块
#### SystemServerApplication 微服务
`cn.iocoder.yudao.module.system.SystemServerApplication`
#### InfraServerApplication 微服务
`cn.iocoder.yudao.module.infra.InfraServerApplication`
### 非必选微服务按需启动