How mohcine-ghalmi/ft_transcendence works
Project Type and Purpose
• This is a full-stack, containerized microservices web application (“ft_transcendence”) offering real-time chat, multiplayer games, user management and social features.
• The README confirms it uses separate Node.js/TypeScript services for chat, game logic and core application logic, a Next.js/React frontend, Redis and SQLite databases, all wired together with Docker Compose and Nginx as a reverse proxy.
File Structure
• Top-level directories:
• frontend/ – Next.js app (React + Zustand)
• backend/ – three sub-services (chat/, game/, main/) each with its own Dockerfile, TS code, database connection (SQLite/Redis) and WebSocket integration
• nginx/ – Dockerfile + conf for reverse proxy
• redis/ – Dockerfile + init scripts
• sqlite/ – Dockerfile + SQL schema
• docker-compose.yml, Makefile, env files for each service
• Pattern: three independent backend microservices exposing REST/WebSocket endpoints, a single frontend container, two data stores, and an Nginx container fronting everything.
README for Additional Insights
• Tech stack: Next.js, React, Zustand, Node.js + Fastify/Express, WebSocket, Redis, SQLite, Docker, Docker Compose, Nginx.