chore: add game server (Colyseus) - flat files

This commit is contained in:
2026-05-15 09:12:10 +02:00
parent c4d9d9b53a
commit 70a3e376b2
10 changed files with 1607 additions and 1 deletions

51
rolld_backend/README.md Normal file
View File

@@ -0,0 +1,51 @@
# ROLL'D Backend
Monorepo backend pour le jeu ROLL'D — architecture microservices.
## Services
| Service | Port | Stack | Description |
|---------|------|-------|-------------|
| auth | 3001 | Node.js + Express | Authentification & sessions |
| game | 2567 | Node.js + Colyseus | Serveur de jeu temps réel |
| stats | 8000 | Python + FastAPI | Statistiques & analytics |
## Infrastructure
| Service | Port | Description |
|---------|------|-------------|
| postgres | 5432 | Base de données |
| redis | 6379 | Cache / PubSub |
## Quickstart
```bash
# Lancer tout l'environnement de dev
docker compose up --build
# Un seul service
docker compose up auth
# Dev sans Docker
cd auth && npm install && npm run dev
cd game && npm install && npm run dev
cd stats && pip install -r requirements.txt && uvicorn app.main:app --reload
```
## Structure
```
├── auth/ # Service d'authentification
│ ├── Dockerfile
│ ├── package.json
│ └── src/
├── game/ # Serveur Colyseus
│ ├── Dockerfile
│ ├── package.json
│ └── src/
├── stats/ # Service de statistiques
│ ├── Dockerfile
│ ├── requirements.txt
│ └── app/
└── docker-compose.yml
```