You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SOP/doc/docs/files/10010_快速体验.md

53 lines
2.0 KiB

6 years ago
# 快速体验
4 years ago
## 方式1
5 years ago
> 运行环境:JDK8,Maven3,[Nacos](https://nacos.io/zh-cn/docs/what-is-nacos.html),Mysql
6 years ago
5 years ago
- 安装并启动Nacos,[安装教程](https://nacos.io/zh-cn/docs/quick-start.html)
5 years ago
- 执行Mysql脚本`sop.sql`(Mysql版本5.6+),5.6以下运行`sop-mysql5.6以下版本.sql`
- IDE安装lombok插件,然后打开项目(IDEA下可以打开根pom.xml,然后open as project)
5 years ago
- 启动网关:打开sop-gateway下的`application-dev.properties`
1. 修改数据库`username/password`
5 years ago
2. 指定nacos地址,如果nacos安装在本机则不用改
5 years ago
3. 运行`SopGatewayApplication.java`
4 years ago
- 启动微服务:打开`sop-example/sop-story`下的`application-dev.properties`文件
5 years ago
1. 指定nacos地址,如果nacos安装在本机则不用改
5 years ago
2. 运行`SopStoryApplication.java`
5 years ago
- 找到sop-test,运行`com.gitee.sop.test.AlipayClientPostTest.testGet`进行接口调用测试
6 years ago
4 years ago
## 方式2(docker)
> 前提:安装好docker
- 安装并启动Nacos,[安装教程](https://nacos.io/zh-cn/docs/quick-start.html)
- 执行Mysql脚本`sop.sql`(Mysql版本5.6+),5.6以下运行`sop-mysql5.6以下版本.sql`
4 years ago
- 打开`docker-entrypoint.sh`,修改mysql,nacos配置
4 years ago
- 执行`docker-build.sh`
- 找到sop-test,运行`com.gitee.sop.test.AlipayClientPostTest.testGet`进行接口调用测试
4 years ago
> - admin地址:http://ip:8082 登录账号:admin/123456
> - 文档地址:http://ip:8083/
4 years ago
6 years ago
## 使用admin
5 years ago
- 找到`sop-admin/sop-admin-server`工程,打开sop-admin-server下的`application-dev.properties`,修改相关配置
5 years ago
- 运行`SopAdminServerApplication.java`
6 years ago
- 访问:`http://localhost:8082`
6 years ago
登录账号:admin/123456
## 启动门户网站
见:`sop-website/sop-portal/README.md`
4 years ago
## 启动文档中心/ISV后台
5 years ago
文档中心代码在sop-website工程中
- 确保注册中心、网关、微服务正常启动
4 years ago
- 修改sop-website-server下的application-dev.properties相关配置
5 years ago
- 运行WebsiteServerApplication.java
- 访问http://localhost:8083