How ozcaredo89/allatyou-renting-hub works
AllAtYou Renting Hub is a fleet-rental operations and finance platform: drivers submit payments and supporting documents, while administrators manage expenses, advances, vehicles, and operational records and review financial reports. The README documents the payment, expense-proration, ledger, and profit workflow; the sampled API bootstrap confirms route mounting, and the sampled Oráculo code shows a separate telemetry-to-event workflow. Many route and page implementations were not sampled, so links for those features are limited to documented behavior and explicit bootstrap wiring.
Main entry points: src/index.ts Express API · supabase.ts Supabase client · App.tsx Web router · oraculo/index.ts Oráculo daemon
Components 25
Web application
- Web router
web/src/App.tsx - Payment page
web/src/pages/Pay.tsx - Expenses page
web/src/pages/Expenses.tsx - Reports page
web/src/pages/Reports.tsx - Advances page
web/src/pages/AdminAdvances.tsx - Profit page
web/src/pages/AdminProfit.tsx
Finance API
- Express API
src/index.ts - Payment handling
src/routes/payments.ts - Expense proration
src/routes/expenses.ts - Operational advances
src/routes/advances.ts - Profit reporting
src/routes/profit.ts - Payment reports
src/routes/reports.ts - Accounting ledger
src/routes/ledger.ts - Supabase client
src/lib/supabase.ts
Fleet operations
- Vehicle management
src/routes/vehicles.ts - Inspections
src/routes/inspections.ts - Trip bookings
src/routes/trips.ts - Vehicle marketplace
src/routes/marketplace.ts
Fleet intelligence
- Oráculo daemon
src/oraculo/index.ts - Geospatial engine
src/oraculo/engine.ts - Fleet telemetry
src/oraculo/oracle.ts - Market monitor
src/oraculo/monitor.ts
Other components
- Drivers
- Administrators
- Supabase database
Connections 35
- Drivers → Web router: use
- Administrators → Web router: manage
- Web router → Payment page: routes to
- Web router → Expenses page: routes to
- Web router → Reports page: routes to
- Web router → Advances page: routes to
- Web router → Profit page: routes to
- Payment page → Express API: submits payment
- Expenses page → Express API: submits expense
- Reports page → Express API: requests reports
- Advances page → Express API: manages advances
- Profit page → Express API: requests profit
- Express API → Payment handling: mounts route
- Express API → Expense proration: mounts route
- Express API → Operational advances: mounts route
- Express API → Profit reporting: mounts route
- Express API → Payment reports: mounts route
- Express API → Accounting ledger: mounts route
- Express API → Vehicle management: mounts route
- Express API → Inspections: mounts route
- Express API → Trip bookings: mounts route
- Express API → Vehicle marketplace: mounts route
- Payment handling → Supabase client: reads and writes
- Expense proration → Supabase client: reads and writes
- Operational advances → Supabase client: reads and writes
- Profit reporting → Supabase client: reads data
- Payment reports → Supabase client: reads data
- Accounting ledger → Supabase client: reads and writes
- Supabase client → Supabase database: accesses
- Express API → Oráculo daemon: starts daemon
- Oráculo daemon → Geospatial engine: runs cycles
- Oráculo daemon → Market monitor: runs monitor
- Geospatial engine → Fleet telemetry: gets telemetry
- Geospatial engine → Supabase client: stores events
- Oráculo daemon → Supabase database: runs hotspot RPC