# parthsonie/park_wise architecture

> Architecture diagram of the GitHub repository parthsonie/park_wise, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/parthsonie/park_wise
- Repository: https://github.com/parthsonie/park_wise

## Overview

ParkWise is a parking discovery and booking interface. The visible customer journey is to browse parking listings, inspect a lot and payment options, then review bookings; login and profile settings are separate account screens, while a distinct owner dashboard represents lot management. The excerpts show listing and booking pages rendering local JSON and several pages rendering a shared sidebar. App routing, dashboard behavior, and account/data interactions are not shown, so their connections are omitted rather than inferred.

Main entry points: [`Components/Side_bar.jsx`](https://github.com/parthsonie/park_wise/blob/main/Components/Side_bar.jsx) (Customer sidebar), [`Pages/Home_search_pg/Home_search_pg.jsx`](https://github.com/parthsonie/park_wise/blob/main/Pages/Home_search_pg/Home_search_pg.jsx) (Parking search), [`Pages/My_bookings/My_bookings.jsx`](https://github.com/parthsonie/park_wise/blob/main/Pages/My_bookings/My_bookings.jsx) (My bookings), [`main.jsx`](https://github.com/parthsonie/park_wise/blob/main/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["App shell<br/>[App.jsx]"]
  node_routes["Route setup<br/>[AppRoute.jsx]"]
  node_sidebar["Customer sidebar<br/>[Side_bar.jsx]"]
end

subgraph group_customer["Customer experience"]
  node_login["Login<br/>[Login_pg.jsx]"]
  node_search["Parking search<br/>[Home_search_pg.jsx]"]
  node_details["Parking details"]
  node_booking["Booking payment<br/>[Bookings_pg.jsx]"]
  node_mybookings["My bookings<br/>[My_bookings.jsx]"]
  node_profile["Profile settings"]
end

subgraph group_owner["Lot owner"]
  node_owner_dashboard["Owner dashboard<br/>[Dashboard.jsx]"]
  node_owner_sidebar["Owner navigation"]
end

subgraph group_data["Local data"]
  node_lots_data["Parking lot listings<br/>[Parking_lot.json]"]
  node_bookings_data["Booking records<br/>[Bookings.json]"]
  node_slots_data["Parking slots<br/>[Parking_slots.json]"]
  node_user_data["User records<br/>[User.json]"]
end

node_browser(("User"))

node_browser -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_search -->|"renders listings from"| node_lots_data
node_mybookings -->|"renders records from"| node_bookings_data
node_search -->|"renders"| node_sidebar
node_booking -->|"renders"| node_sidebar
node_mybookings -->|"renders"| node_sidebar

click node_entry "https://github.com/parthsonie/park_wise/blob/main/main.jsx"
click node_app "https://github.com/parthsonie/park_wise/blob/main/App.jsx"
click node_routes "https://github.com/parthsonie/park_wise/blob/main/AppRoute.jsx"
click node_sidebar "https://github.com/parthsonie/park_wise/blob/main/Components/Side_bar.jsx"
click node_login "https://github.com/parthsonie/park_wise/blob/main/Pages/Login_pg/Login_pg.jsx"
click node_search "https://github.com/parthsonie/park_wise/blob/main/Pages/Home_search_pg/Home_search_pg.jsx"
click node_details "https://github.com/parthsonie/park_wise/blob/main/Pages/Parking_details_section/Parking_details_pg.jsx"
click node_booking "https://github.com/parthsonie/park_wise/blob/main/Pages/Bookings_section/Bookings_pg.jsx"
click node_mybookings "https://github.com/parthsonie/park_wise/blob/main/Pages/My_bookings/My_bookings.jsx"
click node_profile "https://github.com/parthsonie/park_wise/blob/main/Pages/Profile_settings_pg/Profile_settings_pg.jsx"
click node_owner_dashboard "https://github.com/parthsonie/park_wise/blob/main/Pages/Lot_owner_dasboard/Dashboard.jsx"
click node_owner_sidebar "https://github.com/parthsonie/park_wise/blob/main/Components/Dashboard_side_bar.jsx"
click node_lots_data "https://github.com/parthsonie/park_wise/blob/main/Data/Parking_lot.json"
click node_bookings_data "https://github.com/parthsonie/park_wise/blob/main/Data/Bookings.json"
click node_slots_data "https://github.com/parthsonie/park_wise/blob/main/Data/Parking_slots.json"
click node_user_data "https://github.com/parthsonie/park_wise/blob/main/Data/User.json"

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_entry,node_app,node_routes,node_sidebar,node_browser toneBlue
class node_login,node_search,node_details,node_booking,node_mybookings,node_profile toneAmber
class node_owner_dashboard,node_owner_sidebar toneMint
class node_lots_data,node_bookings_data,node_slots_data,node_user_data toneRose
```

## Components

### Application shell

- [React entry](https://github.com/parthsonie/park_wise/blob/main/main.jsx): `main.jsx`
- [App shell](https://github.com/parthsonie/park_wise/blob/main/App.jsx): `App.jsx`
- [Route setup](https://github.com/parthsonie/park_wise/blob/main/AppRoute.jsx): `AppRoute.jsx`
- [Customer sidebar](https://github.com/parthsonie/park_wise/blob/main/Components/Side_bar.jsx): `Components/Side_bar.jsx`

### Customer experience

- [Login](https://github.com/parthsonie/park_wise/blob/main/Pages/Login_pg/Login_pg.jsx): `Pages/Login_pg/Login_pg.jsx`
- [Parking search](https://github.com/parthsonie/park_wise/blob/main/Pages/Home_search_pg/Home_search_pg.jsx): `Pages/Home_search_pg/Home_search_pg.jsx`
- [Parking details](https://github.com/parthsonie/park_wise/blob/main/Pages/Parking_details_section/Parking_details_pg.jsx): `Pages/Parking_details_section/Parking_details_pg.jsx`
- [Booking payment](https://github.com/parthsonie/park_wise/blob/main/Pages/Bookings_section/Bookings_pg.jsx): `Pages/Bookings_section/Bookings_pg.jsx`
- [My bookings](https://github.com/parthsonie/park_wise/blob/main/Pages/My_bookings/My_bookings.jsx): `Pages/My_bookings/My_bookings.jsx`
- [Profile settings](https://github.com/parthsonie/park_wise/blob/main/Pages/Profile_settings_pg/Profile_settings_pg.jsx): `Pages/Profile_settings_pg/Profile_settings_pg.jsx`

### Lot owner

- [Owner dashboard](https://github.com/parthsonie/park_wise/blob/main/Pages/Lot_owner_dasboard/Dashboard.jsx): `Pages/Lot_owner_dasboard/Dashboard.jsx`
- [Owner navigation](https://github.com/parthsonie/park_wise/blob/main/Components/Dashboard_side_bar.jsx): `Components/Dashboard_side_bar.jsx`

### Local data

- [Parking lot listings](https://github.com/parthsonie/park_wise/blob/main/Data/Parking_lot.json): `Data/Parking_lot.json`
- [Booking records](https://github.com/parthsonie/park_wise/blob/main/Data/Bookings.json): `Data/Bookings.json`
- [Parking slots](https://github.com/parthsonie/park_wise/blob/main/Data/Parking_slots.json): `Data/Parking_slots.json`
- [User records](https://github.com/parthsonie/park_wise/blob/main/Data/User.json): `Data/User.json`

### Other components

- **User**

## Connections

- User → React entry: opens app
- React entry → App shell: renders (evidence: `main.jsx`)
- Parking search → Parking lot listings: renders listings from (evidence: `Pages/Home_search_pg/Home_search_pg.jsx`)
- My bookings → Booking records: renders records from (evidence: `Pages/My_bookings/My_bookings.jsx`)
- Parking search → Customer sidebar: renders (evidence: `Pages/Home_search_pg/Home_search_pg.jsx`)
- Booking payment → Customer sidebar: renders (evidence: `Pages/Bookings_section/Bookings_pg.jsx`)
- My bookings → Customer sidebar: renders (evidence: `Pages/My_bookings/My_bookings.jsx`)
