# 贡献指南 感谢你对小虾 SaaS 项目的兴趣! ## 🚀 快速开始 ### 1. Fork 和克隆 ```bash # Fork 项目到你的账号 # 然后克隆 git clone https://github.com/your-username/xiaoxia-saas.git cd xiaoxia-saas ``` ### 2. 设置开发环境 ```bash # 创建虚拟环境 python -m venv venv source venv/bin/activate # Linux/Mac # venv\Scripts\activate # Windows # 安装依赖 pip install -r requirements.txt # 使用内存数据库(无需 PostgreSQL) echo "USE_IN_MEMORY_DB=true" > .env # 启动开发服务器 uvicorn apps.api.main:app --reload ``` ### 3. 运行测试 ```bash # 运行所有测试 pytest tests/ -v # 运行单元测试 pytest tests/unit -v # 生成覆盖率报告 pytest --cov=packages --cov-report=html ``` --- ## 📝 提交规范 ### Commit Message 格式 ``` ():