Files
InfoGenie/README.md
2026-04-12 16:45:24 +08:00

68 lines
1.8 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# InfoGenie / 万象口袋
InfoGenie 是一个前后端分离的聚合型 Web 项目,包含 React + Vite 前端、Go 后端,以及一个独立的 Java 模块。前端负责门户、工具入口、小游戏和 AI 应用壳Go 后端提供站点配置、AI 代理、健康检查和基础管理接口。
## 项目结构
- `InfoGenie-frontend/` - 主前端应用
- `infogenie-backend-go/` - 当前主力后端 API
- `infogenie-backend-java/` - Java Spring Boot 模块
## 功能概览
- 60s 类资讯聚合与榜单展示
- 工具箱与静态小应用嵌入
- AI 应用与流式对话接口
- 管理端站点配置
- 健康检查与运行状态诊断
## 快速开始
### 前端
```bash
cd InfoGenie-frontend
npm install
npm run dev
```
默认地址:`http://localhost:3000`
### Go 后端
```bash
cd infogenie-backend-go
go run ./cmd/server
```
默认地址:`http://127.0.0.1:5002`
### Java 模块
```bash
cd infogenie-backend-java
mvn spring-boot:run
```
## 生产部署
- 前端生产构建使用 `npm run build`
- Go 后端支持 Docker 部署,见 [`infogenie-backend-go/后端文档.md`](infogenie-backend-go/后端文档.md)
- 运行时配置通过环境变量或 `.env` 文件注入
## 配置说明
- 不要提交真实密钥、数据库密码、JWT、Redis 等敏感信息
- 示例配置文件见各模块目录下的 `.env.example``.env.production.example`
- 前端 API 地址通过 `VITE_API_URL` 配置
- Go 后端的数据库、Redis、认证中心配置通过环境变量控制
## 文档
- [`InfoGenie-frontend/前端文档.md`](InfoGenie-frontend/前端文档.md)
- [`infogenie-backend-go/后端文档.md`](infogenie-backend-go/后端文档.md)
## 说明
仓库中部分静态资源和子模块内容较多README 只保留对外可读的最小信息。需要更细的实现说明时,优先查看对应子目录文档。