ESC Menu 03 / 03

Le reseau social du basketball. Trouvez, jouez, partagez.

80+
Handlers CQRS
160+
Endpoints API
9
BLoCs Flutter
Scroll
( Le projet )

Backend Symfony en architecture hexagonale + CQRS, temps reel via Mercure (SSE), carte Mapbox avec itineraires, terrain 3D en Three.js. App mobile Flutter / BLoC avec biometrie. Trouvez des joueurs, lancez des matchs instantanes ou programmes, discutez en groupe et explorez la mediatheque Twitch / YouTube, le tout pilote par un back-office complet.

( Sous le capot )

Du code propre, pas juste des ecrans.

CQRS : une commande, un handler, un evenement de domaine ; le RealTimeService pousse ensuite les updates en SSE via Mercure. Cote web, le terrain 3D est rendu avec Three.js.

php
1<?php // src/Application/CommandHandler/Match/JoinMatchHandler.php
2
3final class JoinMatchHandler
4{
5 public function __construct(
6 private readonly MatchRepositoryInterface $matchRepository,
7 private readonly UserRepositoryInterface $userRepository,
8 private readonly EventDispatcher $eventDispatcher,
9 private readonly LoggerInterface $logger
10 ) {}
11
12 public function handle(JoinMatchCommand $command): void
13 {
14 // ... chargement du match et du joueur via les repositories
15
16 // Vérifier que le match peut être rejoint
17 if (!$match->canBeJoined()) {
18 throw new \InvalidArgumentException("Match cannot be joined in current status: {$match->getStatus()}");
19 }
20
21 // Ajouter le participant
22 $match->addParticipant($user);
23
24 // Sauvegarder
25 $this->matchRepository->save($match);
26
27 // Déclencher l'événement
28 $this->eventDispatcher->dispatch(new MatchJoinedEvent($match, $user));
29 }
30}
ecriture…Ln 1, Col 1 · UTF-8
Galerie01 / 07
7 ecrans

L'app
en images

Scroll ou ◀ ▶
Capture 1
01
Capture 2
02
Capture 3
03
Capture 4
04
Capture 5
05
Capture 6
06
Capture 7
07

Stack technique

Mobile
FlutterDartBLoCMapboxDio / Retrofit
Backend
Symfony 7.2PHP 8.2DoctrineMercure
Frontend
React 19TailwindThree.jsMapbox GL
Infra
DockerMySQL 8RedisNginx
Services
Twitch APIYouTube APIOAuth Google / FacebookJWT RS256

Fonctionnalites

🗺️
Carte interactive
Terrains, stades, medecins, magasins via Mapbox avec directions
🏀
Matchmaking
Matchs instantanes par rayon GPS ou programmes, invitations, check-in terrains
🎥
Mediatheque
Streamers, Twitch, YouTube, formations basketball
⚡
Messagerie & amis
Chats 1:1 et groupes en temps reel (Mercure), typing, demandes d'amis, amis a proximite
🛠️
Back-office
Admin complet : users, terrains, matchs, mediatheque, streamers, logs d'activite
🔒
Securite
JWT RS256, biometrie Face ID, tokens chiffres Keychain/EncryptedPrefs

Architecture

Architecture hexagonale + CQRS

01
CQRS
CommandBus / QueryBus maison sur l'interface Messenger, 80+ handlers ; retry x3 sur le transport async
02
10 modules metier
Match, Message, Friend, Location, Media, Stream, Partner, Subscription, User, Auth
03
Architecture hexagonale
Domain / Application / Infrastructure / Presentation, ports & adapters, repositories en interfaces
04
Real-time (Mercure)
SSE avec auto-reconnect cote web : messages, typing, notifications
05
Cache Redis multi-pool
Users 30min, messages 5min, locations 10min, stats 1h
06
BLoC Pattern (mobile)
Clean Architecture + feature-based sur Flutter
Projet suivantBilly