Terraria server supervisor produced with FastAPI in the coding language Python and React in the other coding language TypeScript.
- Docker and Docker Compose (latest stable version)
- Python 3.10 or higher
- Node.js 18+ and package manager
-
Navigate to the backend directory:
cd backend -
Create a Python virtual environment:
python -m venv venv
-
Activate the virtual environment:
Windows (PowerShell):
.\venv\Scripts\Activate.ps1
macOS/Linux:
source venv/bin/activate -
Install dependencies using uv/hatchling:
pip install -e . -
(Optional) Install development dependencies for testing:
pip install -e ".[dev]"
-
Navigate to the frontend directory:
cd frontend -
Install dependencies using pnpm:
pnpm install
-
Available scripts:
- Development server:
pnpm dev(runs onhttp://localhost:5173) - Production build:
pnpm build
- Development server:
Start both services using Docker Compose:
docker-compose up --buildTo run in detached mode (background):
docker-compose up -d --build| Service | URL |
|---|---|
| Backend | http://localhost:8000 |
| Frontend | http://localhost:5173 |
Both services include health checks configured in docker-compose.yml. The frontend depends on the backend being healthy before starting.