feat: 初始化 ProStock 项目基础结构和配置

- 添加项目规则文档(开发规范、安全规则、配置管理)
- 实现数据模块核心功能(API 客户端、限流器、存储管理、配置加载)
- 添加 .gitignore 和 .kilocodeignore 配置
- 配置环境变量模板
- 编写 daily 模块单元测试
This commit is contained in:
2026-01-31 03:04:51 +08:00
parent f3bb1d8933
commit e625a53162
17 changed files with 1832 additions and 0 deletions

28
config/.env.example Normal file
View File

@@ -0,0 +1,28 @@
# ===========================================
# ProStock 环境变量配置模板
#
# 使用说明:
# 1. 复制此文件为 .env.local
# 2. 填入实际的配置值
# 3. 放在 config/ 目录下
# ===========================================
# 数据库配置
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=prostock
DATABASE_USER=postgres
DATABASE_PASSWORD=your_password
# API密钥配置重要不要泄露到版本控制
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here
# Redis配置可选
REDIS_HOST=localhost
REDIS_PORT=6379
# 应用配置
APP_ENV=development
APP_DEBUG=true
APP_PORT=8000