- 生产环境: api.yifu.ziqiang.net.cn
- 测试环境: api.test.yifu.ziqiang.net.cn
- 克隆项目
git clone https://github.com/ZiqiangStudio/zq_yifu_backend.git
- 创建 conda 环境(推荐)
conda create -n yifu python=3.11
conda activate yifu
- 安装依赖
pip install poetry
poetry install --with dev
- 更新配置文件
将实际配置写入 config/.env
文件中
- 使用 Pycharm 打开项目
在右下角选择 , Add New Interpreter, Add Local Interpreter, Conda Environment。在 Use existing environment 中选择 yifu 环境
- 运行项目
选择 Local Server 作为运行项目,并启动
- 运行测试
选择 Test All with pytest 作为运行项目,并启动