A FastAPI-based multiplayer Tic-Tac-Toe game with real-time WebSocket support.
- User authentication with JWT tokens
- Real-time gameplay using WebSockets
- PostgreSQL or SQLite database support
- RESTful API for game management
-
Install dependencies:
uv sync
-
Configure environment:
cp .env.example .env # Edit .env to use SQLite or PostgreSQL -
Run database migrations:
alembic upgrade head
-
Start the development server:
uvicorn app.main:app --reload
DATABASE_URL=sqlite:///./xo_game.dbDATABASE_URL=postgresql://postgres:postgres@db:5432/xo_gameOnce running, visit:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc