layotto
layotto copied to clipboard
[draft]proposal: demo project
preview service服务
环境
语言:Java 8 框架:Spring Boot 2.6.7 依赖如下:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.mosn.layotto</groupId>
<artifactId>layotto-sdk-springboot</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
接口
preview service控制层(controller)开放File API和State API接口:
File API接口:调用layotto ali oss组件(或者可以是其他的存储系统,有待讨论)
State API接口:调用layotto redis组件
product page页面
修改productpage包下的productpage.html页面和productpag.py代码
@seeflood 要不在Layotto group开一个新的preview service仓库,我好提交代码
@LXPWing ok. 我理解需要:
-
fork istio, 因为 bookinfo 在istio 仓库里,我们需要fork出来改product page页面 我 fork 好啦,在 https://github.com/layotto/istio 并且基于 1.10.6 tag 打了个新分支 preview_service, 作为仓库的默认分支,可以往这提交修改
-
preview service,这个写在 java-sdk仓库的 examples 目录里如何? https://github.com/layotto/java-sdk/tree/main/examples
👌
todo:
- [x] 确认下图片路径格式 @seeflood
@LXPWing 存取图片可以先用 File API 实现 (因为 OSS API review、开发java sdk还需要一些时间)
路径格式是 bucket/xxx/xxx/xx.jpg
这样
示例代码可以看 demo/file/tencentcloud/client.go
@wenxuwan 可以补充下其他细节
@seeflood 路径格式 bucket/layotto/bookinfo/bookimg + 图书id .jpg 。这样看看行不行
@LXPWing LGTM
@LXPWing LGTM
action:
- [x] @LXPWing submit an issue to record the local development problem (python app can't invoke preview service without istio)
- [x] @seeflood review python app https://github.com/layotto/istio/pull/1
python app can't invoke preview service without istio
solved
This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue or help wanted. Thank you for your contributions.