How ptlc8/pokeprof works
Main Components
a) Frontend Layer:
• Web Interface (PHP-based views)
• Static Assets (cards, sounds, boosters)
• Service Worker (for PWA functionality)
• Client-side JavaScript
b) Backend Layer:
• API Endpoints (organized by domain)
• Card Management System
• Match System
• User Management System
• Authentication System
c) Database Layer:
• MariaDB Database
• Initialization Scripts
d) External Services:
• Portal System (for authentication and user data)
• Webhook Integration (for card creation/editing notifications)
[Client Layer]
• ↕
[Web Server Layer (Apache + PHP-FPM)]
• ↕
[API Layer]
• ↕
[Database Layer]
Component Details
Frontend Components (Top Layer):
• Asset management system
• Service worker integration
API Layer (Middle Layer):
• API endpoints into logical modules:
• Card Management (/api/card/*)
• Match System (/api/match/*)
• User Management (/api/user/*)
• Deck Management (/api/user/deck/*)
Database Layer (Bottom Layer):
• MariaDB instance
• Initialization and configuration
External Services (Side Connections):
• Portal System integration
• Webhook notifications system
Important Flows to Highlight
• Authentication flow
• Card creation and moderation flow
• Match making and gameplay flow
• Deck management flow
Deployment Aspects
• Docker container separation if using Docker
• Jenkins pipeline integration
• How auto-deployment works
Remember to show both the development environment setup (with Docker and without) as alternative deployment paths.
This system design should emphasize the modular nature of the application while clearly showing the interaction between components, especially focusing on the game's core features: card management, matchmaking, and user interactions.
Notes about scalability considerations and the human moderation requirement for card approval, as mentioned in the README.