The PokeDo multiplayer server is a FastAPI application backed by PostgreSQL. It handles JWT-based authentication, battle state, turn resolution, ELO updates, and leaderboard queries. You need it running before anyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tldrwtf/pokedo/llms.txt
Use this file to discover all available pages before exploring further.
pokedo battle or pokedo leaderboard commands will work. Single-player features are unaffected and continue using the local SQLite database.
Docker Compose (recommended)
Docker Compose is the fastest way to get both PostgreSQL and the PokeDo server running together.Start the server and database
8000 by default.Manual setup
If you prefer to manage PostgreSQL separately, you can run the server directly with uvicorn.lifespan context manager to initialize database tables on startup — no separate migration step is required.
Environment variables
| Variable | Default | Description |
|---|---|---|
POKEDO_DATABASE_URL | postgresql://pokedo:pokedopass@localhost:5432/pokedo | PostgreSQL connection URL |
POKEDO_SECRET_KEY | your-secret-key-keep-it-secret | JWT signing secret |
POKEDO_SERVER_URL | http://localhost:8000 | Server URL used by the CLI client |
.env file before starting the server. The CLI reads POKEDO_SERVER_URL to know where to send requests, so set it on each machine running the CLI if your server is not on localhost.