layotto icon indicating copy to clipboard operation
layotto copied to clipboard

[draft]proposal: demo project

Open LXPWing opened this issue 2 years ago • 12 comments

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代码

1655111717542

1655110659460

LXPWing avatar Jun 13 '22 09:06 LXPWing

@seeflood 要不在Layotto group开一个新的preview service仓库,我好提交代码

LXPWing avatar Jun 18 '22 16:06 LXPWing

@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

seeflood avatar Jun 19 '22 00:06 seeflood

👌

LXPWing avatar Jun 19 '22 08:06 LXPWing

todo:

  • [x] 确认下图片路径格式 @seeflood

seeflood avatar Jul 02 '22 12:07 seeflood

@LXPWing 存取图片可以先用 File API 实现 (因为 OSS API review、开发java sdk还需要一些时间) 路径格式是 bucket/xxx/xxx/xx.jpg 这样

示例代码可以看 demo/file/tencentcloud/client.go

@wenxuwan 可以补充下其他细节

seeflood avatar Jul 04 '22 05:07 seeflood

@seeflood 路径格式 bucket/layotto/bookinfo/bookimg + 图书id .jpg 。这样看看行不行

LXPWing avatar Jul 04 '22 08:07 LXPWing

@LXPWing LGTM

seeflood avatar Jul 04 '22 08:07 seeflood

@LXPWing LGTM

wenxuwan avatar Jul 04 '22 08:07 wenxuwan

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

seeflood avatar Jul 16 '22 13:07 seeflood

python app can't invoke preview service without istiosolved

LXPWing avatar Jul 17 '22 13:07 LXPWing

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.

github-actions[bot] avatar Aug 19 '22 03:08 github-actions[bot]

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.

github-actions[bot] avatar Sep 19 '22 04:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 27 '22 03:09 github-actions[bot]