minecraft-monitor/backend
2024-03-02 10:54:27 +08:00
..
.gitignore Initial release 2024-03-02 10:54:27 +08:00
db.py Initial release 2024-03-02 10:54:27 +08:00
main.py Initial release 2024-03-02 10:54:27 +08:00
README.md Initial release 2024-03-02 10:54:27 +08:00
requirements.txt Initial release 2024-03-02 10:54:27 +08:00
utils.py Initial release 2024-03-02 10:54:27 +08:00

development

Create virtual environment and install dependencies

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Debug the code

uvicorn main:app --reload

deployment

uvicorn main:app --host "127.0.0.1" --port 10010 --proxy-headers --forwarded-allow-ips "*"