How syahrullah26/bastamifrozen works
This is a business-management application for inventory, purchasing, sales, payments, workforce, and financial reporting. Users work in the Next.js dashboard; its domain services call the Laravel API, whose controllers validate/process requests and read or update persistent business records. The sales and purchasing excerpts show stock and cost handling, while supplier payments allocate payments against purchase balances. Other capabilities are represented from the file tree; their detailed wiring was not sampled.
Main entry points: api.php Laravel API routes · Models Business models · axios.ts HTTP client · (dashboard) Dashboard pages
Components 19
Dashboard
- Dashboard pages
frontend/src/app/(dashboard) - Login page
frontend/src/app/(auth)/login/page.tsx - Domain services
frontend/src/services - HTTP client
frontend/src/lib/axios.ts - Authentication service
frontend/src/services/authService.ts - Finance and reports
frontend/src/app/(dashboard)/revenue - Payment service
frontend/src/services/paymentService.ts - Report service
frontend/src/services/financialReportService.ts
Business API
- Laravel API routes
backend/routes/api.php - Authentication
backend/app/Http/Controllers/Api/AuthController.php - Sales and stock
backend/app/Http/Controllers/Api/SaleController.php - Purchasing
backend/app/Http/Controllers/Api/PurchaseController.php - Supplier payments
backend/app/Http/Controllers/Api/SupplierPaymentController.php - Domain endpoints
backend/app/Http/Controllers/Api
Business Data
- Business models
backend/app/Models - Relational database
backend/config/database.php
Workforce
- Staff and attendance
frontend/src/app/(dashboard)/employees - Workforce endpoints
backend/app/Http/Controllers/Api/EmployeeController.php
Other components
- Business user
Connections 25
- Business user → Dashboard pages: uses
- Business user → Login page: signs in
- Dashboard pages → Domain services: requests data
- Staff and attendance → Domain services: requests data
- Finance and reports → Report service: requests reports
- Dashboard pages → Payment service: manages payments
- Domain services → HTTP client: sends requests
- Payment service → HTTP client: sends requests
- Report service → HTTP client: sends requests
- Login page → Authentication service: submits credentials
- Authentication service → HTTP client: sends requests
- HTTP client → Laravel API routes: transfers API data
- Laravel API routes → Authentication: dispatches auth
- Laravel API routes → Sales and stock: dispatches sales
- Laravel API routes → Purchasing: dispatches purchasing
- Laravel API routes → Supplier payments: dispatches payments
- Laravel API routes → Domain endpoints: dispatches requests
- Laravel API routes → Workforce endpoints: dispatches workforce
- Authentication → Business models: reads and writes
- Sales and stock → Business models: reads and updates
- Purchasing → Business models: reads and updates
- Supplier payments → Business models: allocates and updates
- Domain endpoints → Business models: reads and writes
- Workforce endpoints → Business models: reads and writes
- Business models → Relational database: persists records