{"id":13432288,"url":"https://github.com/flamego-examples/bilibili-lottery","last_synced_at":"2025-03-16T23:31:04.023Z","repository":{"id":122952326,"uuid":"603756262","full_name":"flamego-examples/bilibili-lottery","owner":"flamego-examples","description":"一款支持对哔哩哔哩视频或动态评论进行抽奖的小程序","archived":false,"fork":false,"pushed_at":"2023-03-15T03:02:10.000Z","size":170,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-27T11:50:24.645Z","etag":null,"topics":["bilibili","flamego","lottery","react"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flamego-examples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-19T13:43:29.000Z","updated_at":"2024-10-26T13:46:20.000Z","dependencies_parsed_at":"2024-02-26T20:01:38.835Z","dependency_job_id":null,"html_url":"https://github.com/flamego-examples/bilibili-lottery","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamego-examples%2Fbilibili-lottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamego-examples%2Fbilibili-lottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamego-examples%2Fbilibili-lottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamego-examples%2Fbilibili-lottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flamego-examples","download_url":"https://codeload.github.com/flamego-examples/bilibili-lottery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949871,"owners_count":20373653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","flamego","lottery","react"],"created_at":"2024-07-31T02:01:10.062Z","updated_at":"2025-03-16T23:31:03.699Z","avatar_url":"https://github.com/flamego-examples.png","language":"Go","funding_links":[],"categories":["其他"],"sub_categories":["直播脚本"],"readme":"# 哔哩哔哩抽奖小程序\n\n一款支持对哔哩哔哩视频或动态评论进行抽奖的小程序，架构上使用 [React](https://reactjs.org) 和 [Flamego](https://flamego.dev) 实现前后端分离。\n\n## 界面预览\n\n\u003cimg width=\"500\" src=\"https://user-images.githubusercontent.com/2946214/221393435-6fe7327e-0b92-4a93-9710-e540f24ef6ce.png\"\u003e\n\n\u003cimg width=\"500\" src=\"https://user-images.githubusercontent.com/2946214/221393460-beaae548-a846-4365-80a0-e44c787c103e.png\"\u003e\n\n## 下载使用\n\n1. 前往 [Releases](https://github.com/flamego-examples/bilibili-lottery/releases) 页面下载对应操作系统的二进制\n1. 解压并启动程序\n1. 浏览器访问 http://localhost:2830\n\n## 本地开发\n\n1. 复制 `.env.example` 文件到 `.env`：\n    ```sh\n    cd frontend\n    cp .env.example .env\n    ```\n1. 启动前端开发版本：\n    ```sh\n    pnpm install \u0026\u0026 pnpm start\n    ```\n1. 在另一个终端窗口启动后端：\n    ```sh\n    cd ../backend\n    go run ./cmd\n    ```\n1. 浏览器访问 http://localhost:3000\n\n## 编译部署\n\n1. 构建前端生产版本：\n    ```sh\n    cd frontend\n    pnpm run build\n    ```\n1. 编译并启动后端：\n    ```sh\n    cd ../backend\n    go build -o bilibili-lottery ./cmd\n    FLAMEGO_ENV=production ./bilibili-lottery\n    ```\n1. 浏览器访问 http://localhost:2830\n\n## 授权许可\n\n本项目采用 MIT 开源授权许可证，完整的授权说明已放置在 [LICENSE](LICENSE) 文件中。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflamego-examples%2Fbilibili-lottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflamego-examples%2Fbilibili-lottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflamego-examples%2Fbilibili-lottery/lists"}