How maxx2001/dartzz works
Main Components
a) Frontend Layer:
• Vue.js Components (resources/js/*)
• Main pages: SignInPage and TurnCreatePage
• Component hierarchy with Layouts and Partials
• Inertia.js as the bridge between frontend and backend
b) Backend Layer:
• Controllers (GameController, TurnController, ProfileController)
• Actions Layer (Game and Turn actions)
• Models Layer (Game, Player, Turn, User)
• HTTP Resources for API responses
• Request Validation Layer
c) Database Layer:
• MariaDB (as indicated by docker setup)
• Main tables: users, games, players, turns
d) Infrastructure:
• Docker containers (PHP and MariaDB)
• Cache system
• Queue system (indicated by jobs table)
Component Relationships
• Frontend → Inertia.js → Controllers
• Controllers → Actions → Models → Database
• HTTP Requests → Middleware → Controllers
• Controllers → Resources → Frontend
Specific Implementation Details
Create distinct sections for:
a) Authentication Flow:
• Auth routes and middleware
• To the User model
• Link to profile management
b) Game Flow:
• Game creation process
• Turn management
• Score tracking system
Additional Elements
Include:
• Configuration files influence (config/gameRules.php)
• Cache and queue systems
• Storage structure
• Testing infrastructure