How muhamadafghan/dukung-lokal works
Project type and purpose
• This is a full-stack web application. The frontend is built with Next.js (React) and Tailwind CSS. The backend is a Laravel API (PHP) exposing RESTful endpoints, handling authentication (Laravel Sanctum), geocoding, product/vendor/position/report management, and persistence into a relational database.
File structure
• Top-level directories:
• backend/ – a Laravel project following the standard MVC layout.
• frontend/ – a Next.js project with an app/ directory (Next 13+), components/, hooks/, lib/, store/, public assets, and Tailwind configuration.
• The backend contains Controllers (in app/Http/Controllers), Models, Middleware, Requests, Notifications, database migrations & seeders, configuration files, and a public entry point (public/index.php).
• The frontend has Next.js routes (src/app), reusable UI components (src/components/ui), custom hooks (src/hook), an Axios client wrapper (src/lib/axios.js), and global state stores (src/store).
README
• The README simply points to the deployed URL, confirming this is a user-facing “data-umkm” (small business) dashboard with mapping, ranking, and reporting features.
Elements
– Blue for frontend-side components
– Green for backend-side components
– Orange for external systems (geocoding, map tiles)