# shaikfirdose2008/car-rental-system-1 architecture

> Architecture diagram of the GitHub repository shaikfirdose2008/car-rental-system-1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shaikfirdose2008/car-rental-system-1
- Repository: https://github.com/shaikfirdose2008/car-rental-system-1

## Overview

CarGo is a React car-rental demo. Drivers explore and filter a seeded fleet, choose a vehicle and dates, create a booking, and complete payment to confirm a trip; accounts, bookings and fleet operations are handled through shared application state and browser persistence. The UI also exposes smart matching, wishlists, rewards, and an admin control room for fleet, booking, customer, driver and maintenance management. The README is only a title, so feature coverage comes from sampled UI excerpts; unsampled routes and their internal calls are not mapped.

Main entry points: [`src/context/AppContext.jsx`](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/context/AppContext.jsx) (Application state and booking rules), [`src/App.jsx`](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx) (App routing and pages), [`src/main.jsx`](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/main.jsx) (React bootstrap), [`src/utils/storage.js`](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/utils/storage.js) (Browser persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Rental experience"]
  node_app["App routing and pages<br/>[App.jsx]"]
  node_explore["Car search and booking<br/>[App.jsx]"]
  node_match["Smart matching<br/>[App.jsx]"]
  node_account["Account and profile<br/>[App.jsx]"]
  node_wishlist["Wishlist and rewards<br/>[App.jsx]"]
end

subgraph group_operations["Rental operations"]
  node_admin["Admin control room<br/>[App.jsx]"]
  node_fleetops["Fleet management<br/>[App.jsx]"]
  node_bookops["Booking management<br/>[App.jsx]"]
  node_monitor["Rental monitoring<br/>[App.jsx]"]
  node_peopleops["Customer and driver management<br/>[App.jsx]"]
  node_maintenance["Predictive maintenance<br/>[App.jsx]"]
end

subgraph group_runtime["App runtime and state"]
  node_bootstrap["React bootstrap<br/>[main.jsx]"]
  node_state["Application state and booking rules<br/>[AppContext.jsx]"]
  node_storage[("Browser persistence<br/>[storage.js]")]
end

subgraph group_catalog["Fleet catalog"]
  node_seed["Seed fleet data<br/>[cars.js]"]
end

node_driver(("Renter"))

node_driver -->|"uses"| node_app
node_bootstrap -->|"renders"| node_app
node_bootstrap -->|"provides"| node_state
node_app -->|"reads and updates"| node_state
node_app -->|"routes to"| node_explore
node_app -->|"routes to"| node_match
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_wishlist
node_app -->|"routes to"| node_admin
node_explore -->|"creates bookings"| node_state
node_account -->|"authenticates"| node_state
node_wishlist -->|"updates rewards"| node_state
node_admin -->|"shows"| node_fleetops
node_admin -->|"shows"| node_bookops
node_admin -->|"shows"| node_monitor
node_admin -->|"shows"| node_peopleops
node_admin -->|"shows"| node_maintenance
node_fleetops -->|"updates fleet"| node_state
node_bookops -->|"updates bookings"| node_state
node_monitor -->|"reads bookings"| node_state
node_peopleops -->|"reads and updates"| node_state
node_maintenance -->|"updates records"| node_state
node_state -->|"initializes fleet"| node_seed
node_state -->|"loads and saves"| node_storage

click node_app "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_explore "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_match "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_account "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_wishlist "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_admin "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_fleetops "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_bookops "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_monitor "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_peopleops "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_maintenance "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx"
click node_bootstrap "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/main.jsx"
click node_state "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/context/AppContext.jsx"
click node_storage "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/utils/storage.js"
click node_seed "https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/data/cars.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_explore,node_match,node_account,node_wishlist toneBlue
class node_admin,node_fleetops,node_bookops,node_monitor,node_peopleops,node_maintenance toneAmber
class node_bootstrap,node_state,node_storage toneMint
class node_seed toneRose
class node_driver toneIndigo
```

## Components

### Rental experience

- [App routing and pages](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Car search and booking](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Smart matching](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Account and profile](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Wishlist and rewards](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`

### Rental operations

- [Admin control room](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Fleet management](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Booking management](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Rental monitoring](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Customer and driver management](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`
- [Predictive maintenance](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/App.jsx): `src/App.jsx`

### App runtime and state

- [React bootstrap](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/main.jsx): `src/main.jsx`
- [Application state and booking rules](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/context/AppContext.jsx): `src/context/AppContext.jsx`
- [Browser persistence](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/utils/storage.js): `src/utils/storage.js`

### Fleet catalog

- [Seed fleet data](https://github.com/shaikfirdose2008/car-rental-system-1/blob/main/src/data/cars.js): `src/data/cars.js`

### Other components

- **Renter**

## Connections

- Renter → App routing and pages: uses (evidence: `src/App.jsx`)
- React bootstrap → App routing and pages: renders (evidence: `src/main.jsx`)
- React bootstrap → Application state and booking rules: provides (evidence: `src/main.jsx`)
- App routing and pages → Application state and booking rules: reads and updates (evidence: `src/App.jsx`)
- App routing and pages → Car search and booking: routes to (evidence: `src/App.jsx`)
- App routing and pages → Smart matching: routes to (evidence: `src/App.jsx`)
- App routing and pages → Account and profile: routes to (evidence: `src/App.jsx`)
- App routing and pages → Wishlist and rewards: routes to (evidence: `src/App.jsx`)
- App routing and pages → Admin control room: routes to (evidence: `src/App.jsx`)
- Car search and booking → Application state and booking rules: creates bookings (evidence: `src/App.jsx`)
- Account and profile → Application state and booking rules: authenticates (evidence: `src/App.jsx`)
- Wishlist and rewards → Application state and booking rules: updates rewards (evidence: `src/App.jsx`)
- Admin control room → Fleet management: shows (evidence: `src/App.jsx`)
- Admin control room → Booking management: shows (evidence: `src/App.jsx`)
- Admin control room → Rental monitoring: shows (evidence: `src/App.jsx`)
- Admin control room → Customer and driver management: shows (evidence: `src/App.jsx`)
- Admin control room → Predictive maintenance: shows (evidence: `src/App.jsx`)
- Fleet management → Application state and booking rules: updates fleet (evidence: `src/App.jsx`)
- Booking management → Application state and booking rules: updates bookings (evidence: `src/App.jsx`)
- Rental monitoring → Application state and booking rules: reads bookings (evidence: `src/App.jsx`)
- Customer and driver management → Application state and booking rules: reads and updates (evidence: `src/App.jsx`)
- Predictive maintenance → Application state and booking rules: updates records (evidence: `src/App.jsx`)
- Application state and booking rules → Seed fleet data: initializes fleet (evidence: `src/context/AppContext.jsx`)
- Application state and booking rules → Browser persistence: loads and saves (evidence: `src/context/AppContext.jsx`)
