简体中文
搭建 Mirobody Health 的本地开发环境
克隆仓库
git clone https://github.com/thetahealth/mirobody-health.git cd mirobody-health
创建虚拟环境
python3.12 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
安装依赖
pip install -r requirements.txt pip install -e . # Install in development mode
启动服务
docker-compose up -d postgres redis
配置
cp config.example.yaml config.yaml # Edit config.yaml with your settings
运行应用
python main.py
{ "recommendations": [ "ms-python.python", "ms-python.vscode-pylance", "ms-python.black-formatter", "charliermarsh.ruff", "tamasfe.even-better-toml", "redhat.vscode-yaml" ] }
# Install development dependencies pip install black ruff pytest pytest-asyncio # Format code black . # Lint code ruff check .
# Run all tests pytest # Run with coverage pytest --cov=connect --cov-report=html # Run specific test file pytest tests/test_provider_garmin.py # Run integration tests pytest -m integration
mirobody-health/ ├── connect/ # Provider integrations │ └── theta/ │ ├── mirobody_garmin_connect/ │ └── mirobody_whoop/ ├── tests/ # Test files ├── config.yaml # Configuration ├── main.py # Application entry point ├── requirements.txt # Dependencies └── setup.py # Package setup
此页面对您有帮助吗?