# jaypicntrlio/rentngo- architecture

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

- Interactive diagram: https://gitdiagram.com/jaypicntrlio/rentngo-
- Repository: https://github.com/jaypicntrlio/rentngo-

## Overview

RentNGo is a Java Swing vehicle-rental management application. The main workflow is sign-in, vehicle/date selection and booking, then pickup, return-condition assessment, payment or refund, and optional review. Admin capabilities include account and fleet management, maintenance, promotions, audit, and reporting. The graph combines the README, tree, and supplied excerpts; unsampled screens and service internals are represented only where their paths or documented capabilities are clear, and uncertain connections are omitted.

Main entry points: [`src/service/BookingService.java`](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/BookingService.java) (Booking lifecycle), [`src/gui/AdminDashboardFrame.java`](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/AdminDashboardFrame.java) (Admin operations), [`src/service/PaymentService.java`](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/PaymentService.java) (Payments and refunds), [`src/service/AuthService.java`](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AuthService.java) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_startup["Application startup<br/>[RentNGo.java]"]
  node_login["Sign-in and registration<br/>[LoginFrame.java]"]
  node_customer_ui["Customer dashboard"]
  node_admin_ui["Admin operations"]
  node_rent_ui["Rental selection"]
  node_calendar_ui["Availability calendar"]
  node_return_ui["Return and checklist"]
  node_payment_ui["Payment and receipt<br/>[PaymentFrame.java]"]
  node_records_ui["Rental records"]
  node_reviews_ui["Reviews interface<br/>[ReviewDialog.java]"]
end

subgraph group_services["Business services"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_vehicles["Fleet and maintenance"]
  node_bookings["Booking lifecycle"]
  node_payments["Payments and refunds"]
  node_reviews["Review management<br/>[ReviewService.java]"]
  node_reports["Reports and exports<br/>[ReportService.java]"]
  node_audit["Audit history<br/>[AuditLog.java]"]
end

subgraph group_domain["Rental domain"]
  node_booking_model["Booking and status<br/>[Booking.java]"]
  node_vehicle_model["Vehicle types<br/>[Vehicle.java]"]
  node_condition["Condition checklist"]
  node_review_model["Review data<br/>[Review.java]"]
end

subgraph group_storage["File storage"]
  node_store["Application data services<br/>[DataStore.java]"]
  node_accounts["Account files<br/>[AccountStore.java]"]
  node_tsv["TSV persistence<br/>[TsvFile.java]"]
  node_files[("Local data files")]
end

node_user(("Customer or admin"))

node_user -->|"starts app"| node_startup
node_startup -->|"loads data"| node_store
node_startup -->|"opens login"| node_login
node_login -->|"authenticates"| node_auth
node_auth -->|"loads accounts"| node_accounts
node_customer_ui -->|"books rentals"| node_bookings
node_customer_ui -->|"shows vehicles"| node_vehicles
node_rent_ui -->|"shows availability"| node_calendar_ui
node_calendar_ui -->|"reads booked periods"| node_bookings
node_bookings -->|"checks fleet"| node_vehicles
node_bookings -->|"manages bookings"| node_booking_model
node_return_ui -->|"records return"| node_bookings
node_return_ui -->|"captures condition"| node_condition
node_return_ui -->|"records charges"| node_payments
node_payment_ui -->|"submits payment"| node_payments
node_payments -->|"updates balance"| node_bookings
node_payments -->|"logs payment"| node_audit
node_reviews_ui -->|"submits review"| node_reviews
node_reviews -->|"checks completion"| node_booking_model
node_reviews -->|"stores review"| node_review_model
node_admin_ui -.->|"manages fleet"| node_vehicles
node_admin_ui -.->|"manages accounts"| node_auth
node_admin_ui -.->|"views reports"| node_reports
node_admin_ui -.->|"views audit log"| node_audit
node_records_ui -.->|"views rentals"| node_bookings
node_store -->|"provides services"| node_auth
node_store -->|"provides services"| node_vehicles
node_accounts -->|"reads and writes"| node_tsv
node_tsv -->|"persists records"| node_files

click node_startup "https://github.com/jaypicntrlio/rentngo-/blob/main/src/app/RentNGo.java"
click node_login "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/LoginFrame.java"
click node_customer_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/CustomerDashboardFrame.java"
click node_admin_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/AdminDashboardFrame.java"
click node_rent_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/RentVehicleFrame.java"
click node_calendar_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/AvailabilityCalendar.java"
click node_return_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/ReturnVehicleFrame.java"
click node_payment_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/PaymentFrame.java"
click node_records_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/RentalRecordsDialog.java"
click node_reviews_ui "https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/ReviewDialog.java"
click node_auth "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AuthService.java"
click node_vehicles "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/VehicleService.java"
click node_bookings "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/BookingService.java"
click node_payments "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/PaymentService.java"
click node_reviews "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/ReviewService.java"
click node_reports "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/ReportService.java"
click node_audit "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AuditLog.java"
click node_booking_model "https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Booking.java"
click node_vehicle_model "https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Vehicle.java"
click node_condition "https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/VehicleCondition.java"
click node_review_model "https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Review.java"
click node_store "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/DataStore.java"
click node_accounts "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AccountStore.java"
click node_tsv "https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/TsvFile.java"

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_startup,node_login,node_customer_ui,node_admin_ui,node_rent_ui,node_calendar_ui,node_return_ui,node_payment_ui,node_records_ui,node_reviews_ui toneBlue
class node_auth,node_vehicles,node_bookings,node_payments,node_reviews,node_reports,node_audit toneAmber
class node_booking_model,node_vehicle_model,node_condition,node_review_model toneMint
class node_store,node_accounts,node_tsv,node_files toneRose
class node_user toneIndigo
```

## Components

### Desktop interface

- [Application startup](https://github.com/jaypicntrlio/rentngo-/blob/main/src/app/RentNGo.java): `src/app/RentNGo.java`
- [Sign-in and registration](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/LoginFrame.java): `src/gui/LoginFrame.java`
- [Customer dashboard](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/CustomerDashboardFrame.java): `src/gui/CustomerDashboardFrame.java`
- [Admin operations](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/AdminDashboardFrame.java): `src/gui/AdminDashboardFrame.java`
- [Rental selection](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/RentVehicleFrame.java): `src/gui/RentVehicleFrame.java`
- [Availability calendar](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/AvailabilityCalendar.java): `src/gui/AvailabilityCalendar.java`
- [Return and checklist](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/ReturnVehicleFrame.java): `src/gui/ReturnVehicleFrame.java`
- [Payment and receipt](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/PaymentFrame.java): `src/gui/PaymentFrame.java`
- [Rental records](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/RentalRecordsDialog.java): `src/gui/RentalRecordsDialog.java`
- [Reviews interface](https://github.com/jaypicntrlio/rentngo-/blob/main/src/gui/ReviewDialog.java): `src/gui/ReviewDialog.java`

### Business services

- [Authentication](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AuthService.java): `src/service/AuthService.java`
- [Fleet and maintenance](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/VehicleService.java): `src/service/VehicleService.java`
- [Booking lifecycle](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/BookingService.java): `src/service/BookingService.java`
- [Payments and refunds](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/PaymentService.java): `src/service/PaymentService.java`
- [Review management](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/ReviewService.java): `src/service/ReviewService.java`
- [Reports and exports](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/ReportService.java): `src/service/ReportService.java`
- [Audit history](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AuditLog.java): `src/service/AuditLog.java`

### Rental domain

- [Booking and status](https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Booking.java): `src/model/Booking.java`
- [Vehicle types](https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Vehicle.java): `src/model/Vehicle.java`
- [Condition checklist](https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/VehicleCondition.java): `src/model/VehicleCondition.java`
- [Review data](https://github.com/jaypicntrlio/rentngo-/blob/main/src/model/Review.java): `src/model/Review.java`

### File storage

- [Application data services](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/DataStore.java): `src/service/DataStore.java`
- [Account files](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/AccountStore.java): `src/service/AccountStore.java`
- [TSV persistence](https://github.com/jaypicntrlio/rentngo-/blob/main/src/service/TsvFile.java): `src/service/TsvFile.java`
- **Local data files**

### Other components

- **Customer or admin**

## Connections

- Customer or admin → Application startup: starts app
- Application startup → Application data services: loads data (evidence: `src/app/RentNGo.java`)
- Application startup → Sign-in and registration: opens login (evidence: `src/app/RentNGo.java`)
- Sign-in and registration → Authentication: authenticates (evidence: `src/service/AuthService.java`)
- Authentication → Account files: loads accounts (evidence: `src/service/AuthService.java`)
- Customer dashboard → Booking lifecycle: books rentals (evidence: `src/gui/CustomerDashboardFrame.java`)
- Customer dashboard → Fleet and maintenance: shows vehicles (evidence: `src/gui/CustomerDashboardFrame.java`)
- Rental selection → Availability calendar: shows availability
- Availability calendar → Booking lifecycle: reads booked periods
- Booking lifecycle → Fleet and maintenance: checks fleet (evidence: `src/service/BookingService.java`)
- Booking lifecycle → Booking and status: manages bookings (evidence: `src/service/BookingService.java`)
- Return and checklist → Booking lifecycle: records return (evidence: `src/gui/ReturnVehicleFrame.java`)
- Return and checklist → Condition checklist: captures condition (evidence: `src/gui/ReturnVehicleFrame.java`)
- Return and checklist → Payments and refunds: records charges (evidence: `src/gui/ReturnVehicleFrame.java`)
- Payment and receipt → Payments and refunds: submits payment (evidence: `src/service/PaymentService.java`)
- Payments and refunds → Booking lifecycle: updates balance (evidence: `src/service/PaymentService.java`)
- Payments and refunds → Audit history: logs payment (evidence: `src/service/PaymentService.java`)
- Reviews interface → Review management: submits review (evidence: `src/gui/ReviewDialog.java`)
- Review management → Booking and status: checks completion (evidence: `src/service/ReviewService.java`)
- Review management → Review data: stores review (evidence: `src/service/ReviewService.java`)
- Admin operations → Fleet and maintenance: manages fleet
- Admin operations → Authentication: manages accounts
- Admin operations → Reports and exports: views reports
- Admin operations → Audit history: views audit log
- Rental records → Booking lifecycle: views rentals
- Application data services → Authentication: provides services
- Application data services → Fleet and maintenance: provides services
- Account files → TSV persistence: reads and writes (evidence: `src/service/AccountStore.java`)
- TSV persistence → Local data files: persists records (evidence: `src/service/TsvFile.java`)
