# gorse-docker-compose **Repository Path**: study-demo-all/gorse-docker-compose ## Basic Information - **Project Name**: gorse-docker-compose - **Description**: 使用docker-compose 运行 gorse - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-11 - **Last Updated**: 2024-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1,项目启动 ```bash git clone git@gitee.com:study-demo-all/gorse-docker-compose.git cd gorse-docker-compose docker-compose up -d ``` ## 2,使用 HTTP接口增加用户 ```bash curl -X 'POST' -H 'Content-Type: application/json' \ 'http://127.0.0.1:8088/api/user' \ -d '{ "Comment": "insect", "Labels": [ "crocodilia", "cetacean", "horse" ], "Subscribe": [ "fish", "dog", "lion" ], "UserId": "cat" }' ``` ## 2,使用 HTTP接口增加条目 ```bash curl -X 'POST' -H 'Content-Type: application/json' \ 'http://127.0.0.1:8088/api/item' \ -d '{ "Categories": [ "cetacean", "cow", "cow" ], "Comment": "lion", "IsHidden": false, "ItemId": "cetacean", "Labels": [ "bear", "rabbit", "dog" ], "Timestamp": "2020-02-02T20:20:02.02Z" }' ``` ## 2,使用 HTTP接口增加召回 ```bash curl -X 'POST' -H 'Content-Type: application/json' \ 'http://127.0.0.1:8088/api/feedback' \ -d '[ { "Comment": "crocodilia", "FeedbackType": "bird", "ItemId": "fish", "Timestamp": "2020-02-02T20:20:02.02Z", "UserId": "crocodilia" }, { "Comment": "crocodilia", "FeedbackType": "bird", "ItemId": "fish", "Timestamp": "2020-02-02T20:20:02.02Z", "UserId": "crocodilia" }, { "Comment": "crocodilia", "FeedbackType": "bird", "ItemId": "fish", "Timestamp": "2020-02-02T20:20:02.02Z", "UserId": "crocodilia" } ]' ``` ## 2,使用 HTTP接口测试推荐 http://127.0.0.1:8088//api/recommend/{user-id} http://127.0.0.1:8088//api/recommend/cat