How andhikaprasetya/kumpul-sampah works
Project type and purpose
• This is a full-stack Laravel web application that manages users, transactions, waste categories (“sampah”), points exchange (“penukaranPoints”), withdrawals, articles, and dashboard analytics.
• It exposes both web (Blade + Livewire) and JSON APIs (Controllers under app/Http/Controllers/Api) for mobile or SPA consumption.
File structure
• app/Http/Controllers (MVC controllers for web and api)
• app/Models (Eloquent models representing database tables)
• app/Http/Resources (JSON transformers for API responses)
• resources/views (Blade templates split into “dashboard” for admin and “frontend” for customer)
• public/template-fe (static assets for front-end theme) and public/template (AdminLTE theme for dashboard)
• routes/web.php, routes/api.php, routes/auth.php (route definitions)
• config/*.php (framework and package settings)
• database/migrations & seeders (DB schema and initial data)
• Livewire components under app/Livewire (real-time UI bits)
• tests/ (feature and unit tests)