How baihaqipcr/project-jamsostek works
This is a Laravel/Inertia application for recording and managing business potential (“potensi”), with user accounts and map, import, export, and SP1 document features. The main workflow is a user request routed to a controller, which validates and processes potensi data through Eloquent models, then returns a page or download. Authentication and profile management form a separate branch; Google sign-in is an optional external integration. The README describes Laravel rather than this application, so feature links rely on the sampled controller and source index; unsampled page and route details are not expanded.
Main entry points: PotensiController.php Potensi controller · auth.php Auth routes · User.php User records · web.php Web routes
Components 18
Web interface
- Web routes
routes/web.php - Potensi pages
resources/js/Pages/Potensi - Inertia app
resources/js/app.js - Main layout
resources/js/Layouts/MainLayout.vue - Error boundary
resources/js/Components/ErrorBoundary.vue
Accounts
- Auth routes
routes/auth.php - Session controller
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Google sign-in
app/Http/Controllers/Auth/GoogleAuthController.php - Profile controller
app/Http/Controllers/ProfileController.php
Potensi management
- Potensi controller
app/Http/Controllers/PotensiController.php - Potensi export
app/Exports/PotensiExport.php - Import template
app/Exports/PotensiTemplateExport.php
Domain data
- Potensi records
app/Models/Potensi.php - Program records
app/Models/ProgramPotensi.php - User records
app/Models/User.php
Other components
- User
- Google identity
Connections 19
- User → Web routes: requests
routes/web.php - Web routes → Potensi controller: routes to
routes/web.php - Potensi controller → Potensi records: reads and writes
app/Http/Controllers/PotensiController.php - Potensi controller → Potensi pages: renders pages
app/Http/Controllers/PotensiController.php - Potensi controller → Potensi export: downloads export
app/Http/Controllers/PotensiController.php - Potensi controller → Import template: downloads template
app/Http/Controllers/PotensiController.php - Potensi records → Program records: has many
app/Models/Potensi.php - User → Auth routes: requests
routes/auth.php - Auth routes → Session controller: routes to
routes/auth.php - Auth routes → Registration: routes to
routes/auth.php - Auth routes → Google sign-in: routes to
routes/auth.php - Session controller → User records: authenticates via
- Registration → User records: creates user
app/Http/Controllers/Auth/RegisteredUserController.php - Google sign-in → User records: looks up and updates
app/Http/Controllers/Auth/GoogleAuthController.php - Google sign-in → Google identity: authenticates with
app/Http/Controllers/Auth/GoogleAuthController.php - Web routes → Profile controller: routes to
routes/web.php - Profile controller → User records: updates account
app/Http/Controllers/ProfileController.php - Inertia app → Main layout: applies layout
resources/js/app.js - Inertia app → Error boundary: wraps pages
resources/js/app.js