The API for https://statusmc.perchun.it (public instance is hosted on https://statusmc.perchun.it/api). See https://statusmc.perchun.it/api for API documentation.
It is written in Python 3.8+ using FastAPI framework.
I recommend to only use Docker for production, our image is hosted as perchunpak/statusmc-backend
on
Dockerhub. So you only
need to execute this small bash script:
mkdir data
chmod 777 data # it's enough to set read and write permission, but who cares
docker run -d \
--name statusmc-backend \
-p 8000:8000 \
-v $(pwd)/data:/app/data \
perchunpak/statusmc-backend
git clone https://github.com/StatusMC/backend.git
cd mcstatus-web-backend
Next we need to install poetry
with recommended way.
If you use Linux, use command:
curl -sSL https://install.python-poetry.org | python -
If you use Windows, open PowerShell with admin privileges and use:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
poetry install
All configuration happens in data/config.yml
, or with environment variables (they are uppercase
config variables).
You can always write to me!
This project was generated with python-template.