# atul-adhikari/car-rental-website architecture

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

- Interactive diagram: https://gitdiagram.com/atul-adhikari/car-rental-website
- Repository: https://github.com/atul-adhikari/car-rental-website

## Overview

Yatra Wheels is a car-rental website: visitors browse marketing and fleet pages, select a vehicle, and enter renter details. The sampled frontend shows local car data, filtering/comparison UI, and route-based booking handoff; it does not show a working payment page or a frontend-to-backend booking integration. The Django project is present, but sampled URL configuration exposes only admin, so its accounts behavior is not mapped. Links reflect sampled component and route wiring; unsampled details are omitted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/App.jsx) (Route shell), [`frontend/src/components/rentcar.jsx`](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/rentcar.jsx) (Fleet browsing), [`frontend/src/components/EnterDetails.jsx`](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/EnterDetails.jsx) (Renter details), [`frontend/src/main.jsx`](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Site Discovery"]
  node_app_entry["React entry<br/>[main.jsx]"]
  node_app["Route shell<br/>[App.jsx]"]
  node_home["Home page<br/>[home.jsx]"]
  node_about["Why choose us<br/>[whychooseus.jsx]"]
  node_nav["Navigation<br/>[navbar.jsx]"]
  node_footer["Footer<br/>[footer.jsx]"]
end

subgraph group_booking["Rental Booking"]
  node_fleet["Fleet browsing<br/>[rentcar.jsx]"]
  node_car_data["Car catalogue<br/>[rentcar.jsx]"]
  node_renter_details["Renter details<br/>[EnterDetails.jsx]"]
  node_payment_stage["Payment stage"]
end

subgraph group_server["Backend"]
  node_django_routes["Django routes<br/>[urls.py]"]
  node_accounts["Accounts app"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_app_entry
node_app_entry -->|"mounts"| node_app
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_footer
node_app -->|"routes home"| node_home
node_app -->|"routes about"| node_about
node_app -->|"routes fleet"| node_fleet
node_app -->|"routes details"| node_renter_details
node_visitor -->|"views"| node_home
node_visitor -->|"views"| node_about
node_visitor -->|"browses"| node_fleet
node_car_data -->|"supplies listings"| node_fleet
node_fleet -->|"books selected car"| node_app
node_app -->|"passes selected car"| node_renter_details
node_visitor -->|"enters details"| node_renter_details
node_renter_details -->|"confirms details"| node_app
node_app -.->|"navigates toward"| node_payment_stage
node_django_routes -.->|"no route shown"| node_accounts

click node_app_entry "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/main.jsx"
click node_app "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/home.jsx"
click node_about "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/whychooseus.jsx"
click node_nav "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/navbar.jsx"
click node_footer "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/footer.jsx"
click node_fleet "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/rentcar.jsx"
click node_car_data "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/rentcar.jsx"
click node_renter_details "https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/EnterDetails.jsx"
click node_django_routes "https://github.com/atul-adhikari/car-rental-website/blob/main/backend/config/urls.py"
click node_accounts "https://github.com/atul-adhikari/car-rental-website/tree/main/backend/accounts"

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_entry,node_app,node_home,node_about,node_nav,node_footer toneBlue
class node_fleet,node_car_data,node_renter_details,node_payment_stage toneAmber
class node_django_routes,node_accounts toneMint
class node_visitor toneIndigo
```

## Components

### Site Discovery

- [React entry](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Route shell](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home page](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/home.jsx): `frontend/src/components/home.jsx`
- [Why choose us](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/whychooseus.jsx): `frontend/src/components/whychooseus.jsx`
- [Navigation](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/navbar.jsx): `frontend/src/components/navbar.jsx`
- [Footer](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/footer.jsx): `frontend/src/components/footer.jsx`

### Rental Booking

- [Fleet browsing](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/rentcar.jsx): `frontend/src/components/rentcar.jsx`
- [Car catalogue](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/rentcar.jsx): `frontend/src/components/rentcar.jsx`
- [Renter details](https://github.com/atul-adhikari/car-rental-website/blob/main/frontend/src/components/EnterDetails.jsx): `frontend/src/components/EnterDetails.jsx`
- **Payment stage**

### Backend

- [Django routes](https://github.com/atul-adhikari/car-rental-website/blob/main/backend/config/urls.py): `backend/config/urls.py`
- [Accounts app](https://github.com/atul-adhikari/car-rental-website/tree/main/backend/accounts): `backend/accounts`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site
- React entry → Route shell: mounts
- Route shell → Navigation: renders
- Route shell → Footer: renders
- Route shell → Home page: routes home
- Route shell → Why choose us: routes about
- Route shell → Fleet browsing: routes fleet
- Route shell → Renter details: routes details
- Visitor → Home page: views
- Visitor → Why choose us: views
- Visitor → Fleet browsing: browses
- Car catalogue → Fleet browsing: supplies listings
- Fleet browsing → Route shell: books selected car
- Route shell → Renter details: passes selected car
- Visitor → Renter details: enters details
- Renter details → Route shell: confirms details
- Route shell → Payment stage: navigates toward
- Django routes → Accounts app: no route shown
