How faizalfc/tareeqk_portal works
Tareeqk combines a Laravel API, a customer-facing React web app, and an Expo driver app. The web app routes customers and web-based drivers through account, home, and service screens; the API implements authentication and towing-request operations. The mobile app is a separate demo: the README says its login, registration, and sample request use hard-coded data, with no live API calls. Source excerpts show the web driver service calling request endpoints, but do not show the API route declarations or most customer-screen behavior.
Main entry points: App.js Web Router · common.js API Base URL · RequestController.php Request Operations · RouteServiceProvider.php Laravel API
Components 24
Customer Web
- Web Router
Frontend-customer/reactapp-customer/src/App.js - User Type
Frontend-customer/reactapp-customer/src/pages/UserTypeSelection.js - Customer Register
Frontend-customer/reactapp-customer/src/pages/Register.js - Customer Login
Frontend-customer/reactapp-customer/src/pages/login/Login.js - Customer Home
Frontend-customer/reactapp-customer/src/pages/home/Home.js - Web Driver Login
Frontend-customer/reactapp-customer/src/pages/driver/DriverLogin.js - Web Driver Register
Frontend-customer/reactapp-customer/src/pages/driver/DriverRegister.js - Driver Service
Frontend-customer/reactapp-customer/src/pages/driver/DriverService.js - API Base URL
Frontend-customer/reactapp-customer/src/pages/common.js
Laravel API
- Laravel API
Backend/towing-api/app/Providers/RouteServiceProvider.php - Customer Auth
Backend/towing-api/app/Http/Controllers/CustomerAuthController.php - Driver Auth
Backend/towing-api/app/Http/Controllers/DriverAuthController.php - Request Operations
Backend/towing-api/app/Http/Controllers/RequestController.php - Controller Base
Backend/towing-api/app/Http/Controllers/Controller.php
Driver Mobile
- Mobile Navigator
Frontend-driver/Tow-Driver/App.js - Demo Login
Frontend-driver/Tow-Driver/screens/LoginScreen.js - Demo Register
Frontend-driver/Tow-Driver/screens/RegisterScreen.js - Demo Request Home
Frontend-driver/Tow-Driver/screens/HomeScreen.js
API Domain
- Customer Model
Backend/towing-api/app/Models/Customer.php - Driver Model
Backend/towing-api/app/Models/Driver.php - User Model
Backend/towing-api/app/Models/User.php - Towing Request Model
Backend/towing-api/app/Models/Request.php
Other components
- Customer
- Driver
Connections 29
- Customer → Web Router: uses
README.md - Driver → Web Router: uses
README.md - Web Router → User Type: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Customer Register: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Customer Login: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Customer Home: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Web Driver Login: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Web Driver Register: routes to
Frontend-customer/reactapp-customer/src/App.js - Web Router → Driver Service: routes to
Frontend-customer/reactapp-customer/src/App.js - Customer Register → API Base URL: imports
Frontend-customer/reactapp-customer/src/pages/Register.js - Customer Login → API Base URL: imports
Frontend-customer/reactapp-customer/src/pages/login/Login.js - Customer Home → API Base URL: imports
Frontend-customer/reactapp-customer/src/pages/home/Home.js - Web Driver Login → API Base URL: imports
Frontend-customer/reactapp-customer/src/pages/driver/DriverLogin.js - Web Driver Register → API Base URL: imports
Frontend-customer/reactapp-customer/src/pages/driver/DriverRegister.js - Driver Service → API Base URL: configures API
Frontend-customer/reactapp-customer/src/pages/driver/DriverService.js - Driver Service → Request Operations: requests/status updates
Frontend-customer/reactapp-customer/src/pages/driver/DriverService.js - Laravel API → Customer Auth: dispatches routes
- Laravel API → Driver Auth: dispatches routes
- Laravel API → Request Operations: dispatches routes
- Customer Auth → Customer Model: uses
Backend/towing-api/app/Http/Controllers/CustomerAuthController.php - Customer Auth → Towing Request Model: uses
Backend/towing-api/app/Http/Controllers/CustomerAuthController.php - Driver Auth → Driver Model: creates/authenticates
Backend/towing-api/app/Http/Controllers/DriverAuthController.php - Request Operations → Towing Request Model: creates and updates
Backend/towing-api/app/Http/Controllers/RequestController.php - Customer Model → User Model: extends
Backend/towing-api/app/Models/Customer.php - Driver Model → User Model: extends
Backend/towing-api/app/Models/Driver.php - Request Operations → Controller Base: extends
Backend/towing-api/app/Http/Controllers/RequestController.php - Mobile Navigator → Demo Login: navigates to
Frontend-driver/Tow-Driver/App.js - Mobile Navigator → Demo Register: navigates to
Frontend-driver/Tow-Driver/App.js - Mobile Navigator → Demo Request Home: starts at
Frontend-driver/Tow-Driver/App.js