{"id":30708469,"url":"https://github.com/belmqadem/ft_transcendence","last_synced_at":"2026-06-23T13:32:20.848Z","repository":{"id":309925529,"uuid":"1037982888","full_name":"belmqadem/ft_transcendence","owner":"belmqadem","description":"This project is centered around the design, development, and organization of a full-stack web application.","archived":false,"fork":false,"pushed_at":"2025-08-14T14:52:14.000Z","size":20192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T22:04:14.264Z","etag":null,"topics":["42","42school","custom-jsx","design","fastify","ft-transcendence","game-dev","typescript","webdev"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/belmqadem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-14T12:35:51.000Z","updated_at":"2025-08-14T14:54:58.000Z","dependencies_parsed_at":"2025-08-14T16:48:11.268Z","dependency_job_id":null,"html_url":"https://github.com/belmqadem/ft_transcendence","commit_stats":null,"previous_names":["belmqadem/ft_transcendence"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/belmqadem/ft_transcendence","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belmqadem%2Fft_transcendence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belmqadem%2Fft_transcendence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belmqadem%2Fft_transcendence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belmqadem%2Fft_transcendence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belmqadem","download_url":"https://codeload.github.com/belmqadem/ft_transcendence/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belmqadem%2Fft_transcendence/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","42school","custom-jsx","design","fastify","ft-transcendence","game-dev","typescript","webdev"],"created_at":"2025-09-02T22:01:44.850Z","updated_at":"2026-06-23T13:32:20.831Z","avatar_url":"https://github.com/belmqadem.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏓 ft_transcendence\n\n## Overview\n\n**ft_transcendence** is a comprehensive social gaming platform built as the final project for the 42 curriculum. This modern web application combines real-time Pong gameplay with social features including chat, user profiles, friend systems, and tournaments. The project demonstrates advanced full-stack development using microservices architecture.\n\n### Key Features\n\n🎮 **Multi-Mode Gaming**\n\n- **Local 1v1**: Face-to-face matches with friends\n- **Remote Battles**: Online matches against players worldwide\n- **Tournament Mode**: Organized competitive brackets\n\n🔐 **Advanced Authentication**\n\n- Multi-factor authentication (2FA) with TOTP/Email\n- OAuth integration (Google, 42 School)\n- Secure JWT-based session management\n\n💬 **Real-time Communication**\n\n- Live chat system with WebSocket technology\n- Direct messaging between players\n- Real-time notifications and updates\n\n👥 **Social Features**\n\n- Friend requests and management\n- User blocking and privacy controls\n- Live dashboard showing player activity\n- Match history and statistics\n\n🎨 **Modern UI/UX**\n\n- Responsive design optimized for desktop gaming\n- Dark theme with elegant animations\n- Real-time data visualization with Chart.js\n\n---\n\n## Architecture\n\n### Frontend Stack\n\n- **Framework**: Vite + TypeScript for fast development\n- **Styling**: TailwindCSS for modern, responsive design\n- **State Management**: Custom stores with localStorage persistence\n- **Charts**: Chart.js for data visualization\n- **Build Tool**: Vite with hot module replacement\n\n### Backend Architecture\n\nThe backend follows a **microservices pattern** with domain-driven separation:\n\n- **🔑 Auth Service**: User authentication, 2FA, OAuth providers\n- **👤 Profile Service**: User profiles, avatars, preferences\n- **👥 Relationships Service**: Friend management, blocking system\n- **💬 Chat Service**: Real-time messaging with WebSocket\n- **📊 Dashboard Service**: Live activity feeds and statistics\n- **🎮 Game Service**: Pong game logic and match management\n- **🔔 Notifications Service**: Real-time notifications and alerts\n\n### Infrastructure\n\n- **API Gateway**: Nginx reverse proxy with SSL termination\n- **Message Queue**: RabbitMQ for inter-service communication\n- **Cache Layer**: Redis for session management and caching\n- **Database**: SQLite for each microservice (development)\n- **Containerization**: Docker + Docker Compose orchestration\n\n---\n\n## Project Structure\n\n```\nft_transcendence/\n├── client/                          # Frontend Application\n│   ├── nginx/                       # Nginx reverse proxy config\n│   ├── public/                      # Static assets (images, icons)\n│   ├── src/\n│   │   ├── components/              # Reusable UI components\n│   │   │   ├── auth/               # Authentication forms\n│   │   │   ├── chat/               # Chat interface components\n│   │   │   ├── game/               # Game UI components\n│   │   │   ├── profile/            # Profile management\n│   │   │   └── ...\n│   │   ├── pages/                   # Route components\n│   │   ├── services/                # API communication layer\n│   │   ├── handlers/                # Event handlers and form logic\n│   │   ├── utils/                   # Utilities and stores\n│   │   └── router/                  # SPA routing configuration\n│   ├── package.json\n│   └── vite.config.ts\n│\n├── server/                          # Backend Microservices\n│   ├── auth-service/               # Authentication \u0026 Authorization\n│   ├── profile-service/            # User Profile Management\n│   ├── relationships-service/      # Social Features (Friends/Blocking)\n│   ├── chat-service/              # Real-time Messaging\n│   ├── game-service/              # Game Logic \u0026 Match History\n│   ├── dashboard-service/         # Live Activity Dashboard\n│   ├── notifications-service/     # Push Notifications\n│   ├── redis/                     # Redis Configuration\n│   └── docs/                      # API Documentation\n│\n├── docker-compose.yml             # Service orchestration\n├── Makefile                       # Development commands\n└── README.md\n```\n\n---\n\n## Quick Start\n\n### Prerequisites\n\n- Docker and Docker Compose\n- Make (optional, for convenience commands)\n\n### Environment Setup\n\n1. **Clone the repository**\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd ft_transcendence\n   ```\n\n2. **Configure environment variables**\n\n   ```bash\n   cp server/.env.example server/.env\n   # Edit server/.env with your configuration\n   ```\n\n3. **Start all services**\n\n   ```bash\n   make up\n   # or directly: docker compose up --build -d\n   ```\n\n4. **Access the application**\n   - **HTTPS**: https://localhost:9090 (recommended)\n   - **HTTP**: http://localhost:8080\n\n### Development Commands\n\n```bash\nmake up      # Start all services\nmake down    # Stop and clean all services\nmake re      # Restart all services\nmake logs    # View all service logs\n```\n\n---\n\n## API Services\n\n| Service               | Port      | Description                    |\n| --------------------- | --------- | ------------------------------ |\n| Auth Service          | Internal  | JWT authentication, 2FA, OAuth |\n| Profile Service       | Internal  | User profiles and preferences  |\n| Relationships Service | Internal  | Friend management system       |\n| Chat Service          | Internal  | WebSocket-based messaging      |\n| Game Service          | Internal  | Pong game logic and history    |\n| Dashboard Service     | Internal  | Real-time activity feeds       |\n| Notifications Service | Internal  | Push notification system       |\n| Nginx Gateway         | 8080/9090 | Reverse proxy and static files |\n\n_All backend services communicate internally through the Docker network and RabbitMQ message queue._\n\n---\n\n## Technology Stack\n\n### Frontend\n\n- **TypeScript** - Type-safe JavaScript development\n- **Vite** - Fast build tool and development server\n- **TailwindCSS** - Utility-first CSS framework\n- **Chart.js** - Data visualization library\n\n### Backend\n\n- **Node.js** - JavaScript runtime\n- **Fastify** - Fast and efficient web framework\n- **SQLite** - Lightweight database for each service\n- **Redis** - In-memory data structure store\n- **RabbitMQ** - Message broker for microservices\n\n### DevOps\n\n- **Docker** - Containerization platform\n- **Docker Compose** - Multi-container orchestration\n- **Nginx** - Reverse proxy and web server\n\n---\n\n## Development\n\nThis project was developed as part of the **42 School curriculum**, focusing on:\n\n- Advanced web development with modern technologies\n- Microservices architecture and containerization\n- Real-time web applications with WebSockets\n- Security best practices and authentication\n- Responsive design and user experience\n\nThe codebase demonstrates production-ready patterns including proper error handling, input validation, rate limiting, and secure communication between services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelmqadem%2Fft_transcendence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelmqadem%2Fft_transcendence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelmqadem%2Fft_transcendence/lists"}