AthleTech 是一款全面的健身应用程序,利用人工智能根据用户资料和健身目标提供个性化的锻炼计划和目标路线图。
这是一个单仓库,包含两个主要组件:
AthleTech/
├── AthleTech-front/ # 使用 Expo 的 React Native 移动应用
└── MCP-backend/ # 使用 FastAPI 的 Python 后端
cd MCP-backend
python -m venv venv
source venv/bin/activate # 在 Windows 上:venv\Scripts\activate
pip install -r requirements.txt
.env 文件(从 .env.example 复制):cp .env.example .env
.env 文件中的配置:MONGO_URL=mongodb://localhost:27017
SECRET_KEY=your-secret-key-here
HOST=0.0.0.0
PORT=8000
CORS_ORIGINS=http://localhost:8081
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
cd AthleTech-front
npm install
.env 文件(从 .env.example 复制):cp .env.example .env
.env 文件中的后端 URL:EXPO_PUBLIC_API_URL=http://192.168.100.32:8000
注意:请替换为您机器的 IP 地址,或者在本地开发时使用 http://localhost:8000。
npx expo start
i 启动 iOS 模拟器a 启动 Android 模拟器POST /auth/register - 注册新用户POST /auth/login - 登录并接收 JWT 令牌GET /workout/generate - 生成个性化的锻炼计划(需要认证)GET /goal-roadmap/generate - 生成健身目标路线图(需要认证)MCP-backend/.env)MONGO_URL:MongoDB 连接字符串SECRET_KEY:JWT 密钥(生产环境中使用强随机字符串)HOST:服务器主机(默认:0.0.0.0)PORT:服务器端口(默认:8000)CORS_ORIGINS:允许的来源列表,逗号分隔AthleTech-front/.env)EXPO_PUBLIC_API_URL:后端 API 基础 URL.env 文件提交到版本控制中SECRET_KEYcd MCP-backend
pytest
cd AthleTech-front
npm run lint
git checkout -b feature/amazing-feature)git commit -m '添加了惊人的功能')git push origin feature/amazing-feature)本项目是私有的且具有专有性质。
如有问题或需要支持,请在仓库中打开一个 Issue。