Hopefully the the next-generation backend server of bgm.tv
基于 python 的新 api server
开发环境
python 版本: 3.8
依赖管理: poetry
web 框架: fastapi
quick start:
git clone https://github.com/bangumi/server bangumi-server
cd bangumi-server
python -m venv .venv # MUST use python 3.8
source .venv/bin/activate
poetry install --remove-untracked
pre-commit install
设置
可设置的环境变量
MYSQL_HOST默认127.0.0.1MYSQL_PORT默认3306MYSQL_DB默认bangumiMYSQL_USER无默认值MYSQL_PASS无默认值
启动服务器
uvicorn pol.server:app --reload --port 3000
后端环境