How pratikid/leg works
Project type and purpose
• This is a full-stack Laravel (PHP) web application named LEG (Lineage Exploration and Genealogy).
File structure
• Top-level:
• app/ (Models, Controllers, Services, Middleware, Livewire components) – the core MVC application
• resources/ (Blade views, JS/CSS assets) – the frontend
• routes/ (web.php, api.php) – HTTP and API endpoints
• config/, bootstrap/ – framework bootstrap & configuration
• database/ (migrations, seeders) – relational schema
• docker/ & docker-compose.yml – container definitions (PHP-FPM, Nginx)
• Key patterns:
• MVC with Controllers → Services → Repositories/Models
• API versioning under app/Http/Controllers/Api/V1
• Livewire for reactive UI, D3.js for visualizations
• Neo4j accessed via Neo4jIndividualService for graph queries
• Cache service, queue workers (jobs table), sanctum for API auth
README for additional insights
• Tech stack: PHP ≥8.4, Laravel 12.x, Livewire, D3.js, Neo4j, Docker
• Features: GEDCOM 5.5.5 import/export, family tree & timeline visualizations, community forums, role-based authorization