{"id":25845349,"url":"https://github.com/lifefloating/lotterymaster","last_synced_at":"2025-03-01T08:18:36.586Z","repository":{"id":278379096,"uuid":"932613440","full_name":"lifefloating/LotteryMaster","owner":"lifefloating","description":"LotteryMaster-AI是你的专属彩票大师，旨在帮助你通过AI提高中奖概率","archived":false,"fork":false,"pushed_at":"2025-02-27T03:16:25.000Z","size":888,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T03:23:57.432Z","etag":null,"topics":["fastify","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lifefloating.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-14T07:49:18.000Z","updated_at":"2025-02-27T03:16:28.000Z","dependencies_parsed_at":"2025-02-19T13:33:23.226Z","dependency_job_id":"140be14a-606e-4fa2-ab55-23cf4f2f65b8","html_url":"https://github.com/lifefloating/LotteryMaster","commit_stats":null,"previous_names":["lifefloating/lotterymaster"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifefloating%2FLotteryMaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifefloating%2FLotteryMaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifefloating%2FLotteryMaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifefloating%2FLotteryMaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lifefloating","download_url":"https://codeload.github.com/lifefloating/LotteryMaster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241335989,"owners_count":19946150,"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":["fastify","typescript"],"created_at":"2025-03-01T08:18:35.205Z","updated_at":"2025-03-01T08:18:36.564Z","avatar_url":"https://github.com/lifefloating.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LotteryMaster\n\n\n### ✨ 主要功能 (Key Features)\n\n- 📊 **数据处理**:  抓取彩票数据，保存到Excel文件。\n- 🤖 **输出报告**:  集成通义千问大模型(Qwen-MAX)，根据prompt生成分析报告，包括号码预测、号码推荐、号码趋势等。\n- 📱 **多端访问支持**:   支持Web、移动App等多平台访问，方便用户随时随地获取彩票分析信息。前端项目地址: [LotteryMaster-Uniapp](https://github.com/lifefloating/LotteryMaster-Uniapp)\n\n## 🛠️ 技术栈 (Tech Stack)\n\n- **后端开发**\n  - \u003ca href=\"https://www.fastify.io/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Fastify-404D59?style=flat-square\u0026logo=fastify\u0026logoColor=white\" alt=\"Fastify Badge\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://nodejs.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Node.js-339933?style=flat-square\u0026logo=node.js\u0026logoColor=white\" alt=\"Node.js Badge\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://cheerio.js.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Cheerio.js-00A300?style=flat-square\u0026logo=css3\u0026logoColor=white\" alt=\"Cheerio.js Badge\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://www.npmjs.com/package/xlsx\"\u003e\u003cimg src=\"https://img.shields.io/badge/xlsx-lightgrey?style=flat-square\u0026logo=npm\u0026logoColor=red\" alt=\"xlsx Badge\"/\u003e\u003c/a\u003e\n\n- **AI 模型**\n  - [通义千问 Qwen-MAX API](https://tongyi.aliyun.com/qianwen/):  阿里云大语言模型API，用于生成分析报告。\n  \n- **前端开发**\n  - [LotteryMaster-Uniapp](https://github.com/lifefloating/LotteryMaster-Uniapp): 基于uniapp + Vue3 + TypeScript的多端应用\n\n## 🚀 快速开始 (Quick Start)\n\n### ⚙️ 环境要求 (Prerequisites)\n\n- [Node.js](https://nodejs.org/en/download/):  版本 \u003e= 18.0 (推荐使用最新LTS版本)\n- [pnpm](https://pnpm.io/) 或 [yarn](https://yarnpkg.com/):  包管理器 (推荐使用pnpm)\n- [通义千问 Qwen-MAX API Key](https://tongyi.aliyun.com/qianwen/):  需要开通阿里云通义千问服务并获取API密钥\n\n### 👣 步骤 (Steps)\n\n1. **克隆代码仓库 (Clone the repository)**\n   ```bash\n   git clone https://github.com/lifefloating/LotteryMaster\n   cd LotteryMaster\n   ```\n\n2. **安装后端依赖 (Install backend dependencies)**\n   ```bash\n   pnpm install\n   ```\n\n3. **配置环境变量 (Configure environment variables)**\n\n   在项目根目录下创建 `.env` 文件，并根据 `.env.example` 文件中的示例配置以下环境变量：\n\n   ```env\n   PORT=3008\n   API_KEY=your_key\n   ```\n\n   其他的按需求调整配置\n\n4. **运行服务 (Run backend service)**\n   ```bash\n    pnpm run start\n   ```\n\n   后端服务默认运行在 `http://localhost:3008`。\n\n5. **运行前端项目**\n\n   前端项目请参考 [LotteryMaster-Uniapp](https://github.com/lifefloating/LotteryMaster-Uniapp) 的 `README.md` 文件启动前端服务，并确保前端配置的后端API地址正确。\n\n6. **部署\u0026运行 (Deployment \u0026 Running)**\n\n   ### Docker部署\n\n   #### 前提条件\n   - 已安装 [Docker](https://www.docker.com/get-started)\n   - 已克隆 LotteryMaster 代码仓库\n\n   #### 运行步骤\n   1. 使用环境变量文件运行Docker容器：\n   ```bash\n   docker run -d -p 3008:3008 --name lottery-master-app lottery-master\n   ```\n\n   更多详细的部署说明请参考：[部署指南](./DEPLOYMENT.md)\n\n\n### 🔗 访问API\n\n后端服务启动后，您可以使用Postman、curl等工具访问API接口。\n\n例如，访问健康检查接口：\n```bash\ncurl http://localhost:3008/api/health\n```\n\n### 🖼️ 接口测试图\n\n![分析接口测试结果](./images/analyze_result.png)\n\n### 📝 TODO\n  - 尝试切换deepseek或者其他的测试比较一下\n  - 做成通用类型对，支持多种模型\n  - 前端页面样式?交互?\n\n\n文档将在后续继续完善。\n\n---\n\n**注意**:  本项目仍处于开发阶段，部分功能可能尚未完善。分析报告的结果仅供参考，不构成任何投资建议。请理性对待彩票，切勿沉迷。\n\n如果您在使用过程中遇到任何问题，或者有任何建议，欢迎提交Issue或Pull Request。\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Hubery-Lee/LotteryMaster/issues\"\u003e\u003cimg src=\"https://img.shields.io/badge/Issues-提交Issue-blueviolet\" alt=\"Issues\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Hubery-Lee/LotteryMaster/pulls\"\u003e\u003cimg src=\"https://img.shields.io/badge/Pull%20Requests-提交PR-success\" alt=\"Pull Requests\"/\u003e\u003c/a\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/Status-Beta-yellow\" alt=\"Project Status: Beta\"/\u003e\u003c/a\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-brightgreen\" alt=\"License: MIT\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifefloating%2Flotterymaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifefloating%2Flotterymaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifefloating%2Flotterymaster/lists"}