# ivy0506/renteasy architecture

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

- Interactive diagram: https://gitdiagram.com/ivy0506/renteasy
- Repository: https://github.com/ivy0506/renteasy

## Overview

RentEasy is a car-rental platform with a customer-facing Angular app, an admin dashboard, and a NestJS API. The principal customer journey is account access, vehicle discovery, reservation, and payment; the repository also exposes agency, promotion, messaging, review, and wishlist capabilities. The README establishes the overall client/API relationship, while sampled routes and source-index references support several internal calls. Unsampled feature details and persistence wiring are not inferred.

Main entry points: [`frontoffice/src/app/app.routes.ts`](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/app.routes.ts) (Customer experience), [`admin_panel/src/app/app.routes.ts`](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/app.routes.ts) (Management dashboard), [`backend/src/vehicule/vehicule.service.ts`](https://github.com/ivy0506/renteasy/blob/main/backend/src/vehicule/vehicule.service.ts) (Vehicle catalog API), [`frontoffice/src/app/reservations/reservation-list/reservation-list.component.ts`](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/reservations/reservation-list/reservation-list.component.ts) (Reservations and checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer app"]
  node_web["Customer experience<br/>[app.routes.ts]"]
  node_home["Home and promotions<br/>[home.component.ts]"]
  node_vehiclebrowse["Vehicle browsing"]
  node_bookingui["Reservations and checkout"]
  node_messaging["Customer messaging"]
  node_wishlist["Wishlist"]
end

subgraph group_admin["Admin app"]
  node_adminui["Management dashboard<br/>[app.routes.ts]"]
  node_admindash["Dashboard analytics"]
  node_adminauth["Admin sign-in<br/>[auth.service.ts]"]
  node_adminfleet["Fleet and agency management"]
  node_adminbooking["Booking and client management"]
  node_adminreviews["Review moderation<br/>[review.service.ts]"]
end

subgraph group_identity["Identity and access"]
  node_authapi["Authentication API<br/>[auth.service.ts]"]
  node_usersapi["User management<br/>[users.service.ts]"]
end

subgraph group_fleet["Fleet and discovery"]
  node_fleetapi["Vehicle catalog API"]
  node_promotionsapi["Promotions API"]
end

subgraph group_rental["Rental operations"]
  node_reservationapi["Reservation API"]
  node_paymentapi["Payment processing<br/>[payment.service.ts]"]
  node_messagesapi["Messaging API"]
  node_extras["Reviews, options, and agencies"]
end

node_renter(("Renter"))
node_adminuser(("Administrator"))
node_stripe["Stripe"]

node_renter -->|"uses"| node_web
node_web -->|"routes to"| node_home
node_web -->|"routes to"| node_bookingui
node_web -->|"routes to"| node_messaging
node_vehiclebrowse -.->|"requests catalog"| node_fleetapi
node_bookingui -.->|"submits booking"| node_reservationapi
node_bookingui -.->|"starts payment"| node_paymentapi
node_paymentapi -.->|"charges"| node_stripe
node_messaging -.->|"uses API"| node_messagesapi
node_wishlist -.->|"uses API"| node_extras
node_home -.->|"loads offers"| node_promotionsapi
node_web -.->|"uses API"| node_authapi
node_adminuser -->|"uses"| node_adminui
node_adminui -->|"routes to"| node_admindash
node_adminui -->|"routes to"| node_adminfleet
node_adminui -->|"routes to"| node_adminbooking
node_adminauth -.->|"uses API"| node_authapi
node_adminfleet -.->|"manages"| node_fleetapi
node_adminbooking -.->|"manages"| node_reservationapi
node_adminreviews -.->|"moderates"| node_extras
node_authapi -->|"delegates"| node_usersapi
node_web -->|"calls API"| node_fleetapi
node_adminui -->|"calls API"| node_fleetapi

click node_web "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/app.routes.ts"
click node_home "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/home/home.component.ts"
click node_vehiclebrowse "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/vehicules/vehicule-list/vehicule-list.component.ts"
click node_bookingui "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/reservations/reservation-list/reservation-list.component.ts"
click node_messaging "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/messages/conversation/conversation.component.ts"
click node_wishlist "https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/wishlist/wishlist-list/wishlist-list.component.ts"
click node_adminui "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/app.routes.ts"
click node_admindash "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/dashboard/dashboard.component.ts"
click node_adminauth "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/services/authService/auth.service.ts"
click node_adminfleet "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/vehicule/vehicule.component.ts"
click node_adminbooking "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/reservation/reservation.component.ts"
click node_adminreviews "https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/services/review.service.ts"
click node_authapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/auth/auth.service.ts"
click node_usersapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/users/users.service.ts"
click node_fleetapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/vehicule/vehicule.service.ts"
click node_promotionsapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/promotions/promotions.service.ts"
click node_reservationapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/reservation/reservation.service.ts"
click node_paymentapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/reglement/payment.service.ts"
click node_messagesapi "https://github.com/ivy0506/renteasy/blob/main/backend/src/messages/messages.service.ts"
click node_extras "https://github.com/ivy0506/renteasy/tree/main/backend/src"

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_web,node_home,node_vehiclebrowse,node_bookingui,node_messaging,node_wishlist toneBlue
class node_adminui,node_admindash,node_adminauth,node_adminfleet,node_adminbooking,node_adminreviews toneAmber
class node_authapi,node_usersapi toneMint
class node_fleetapi,node_promotionsapi toneRose
class node_reservationapi,node_paymentapi,node_messagesapi,node_extras,node_renter,node_adminuser,node_stripe toneIndigo
```

## Components

### Customer app

- [Customer experience](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/app.routes.ts): `frontoffice/src/app/app.routes.ts`
- [Home and promotions](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/home/home.component.ts): `frontoffice/src/app/home/home.component.ts`
- [Vehicle browsing](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/vehicules/vehicule-list/vehicule-list.component.ts): `frontoffice/src/app/vehicules/vehicule-list/vehicule-list.component.ts`
- [Reservations and checkout](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/reservations/reservation-list/reservation-list.component.ts): `frontoffice/src/app/reservations/reservation-list/reservation-list.component.ts`
- [Customer messaging](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/messages/conversation/conversation.component.ts): `frontoffice/src/app/messages/conversation/conversation.component.ts`
- [Wishlist](https://github.com/ivy0506/renteasy/blob/main/frontoffice/src/app/wishlist/wishlist-list/wishlist-list.component.ts): `frontoffice/src/app/wishlist/wishlist-list/wishlist-list.component.ts`

### Admin app

- [Management dashboard](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/app.routes.ts): `admin_panel/src/app/app.routes.ts`
- [Dashboard analytics](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/dashboard/dashboard.component.ts): `admin_panel/src/app/views/dashboard/dashboard.component.ts`
- [Admin sign-in](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/services/authService/auth.service.ts): `admin_panel/src/app/services/authService/auth.service.ts`
- [Fleet and agency management](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/vehicule/vehicule.component.ts): `admin_panel/src/app/views/vehicule/vehicule.component.ts`
- [Booking and client management](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/views/reservation/reservation.component.ts): `admin_panel/src/app/views/reservation/reservation.component.ts`
- [Review moderation](https://github.com/ivy0506/renteasy/blob/main/admin_panel/src/app/services/review.service.ts): `admin_panel/src/app/services/review.service.ts`

### Identity and access

- [Authentication API](https://github.com/ivy0506/renteasy/blob/main/backend/src/auth/auth.service.ts): `backend/src/auth/auth.service.ts`
- [User management](https://github.com/ivy0506/renteasy/blob/main/backend/src/users/users.service.ts): `backend/src/users/users.service.ts`

### Fleet and discovery

- [Vehicle catalog API](https://github.com/ivy0506/renteasy/blob/main/backend/src/vehicule/vehicule.service.ts): `backend/src/vehicule/vehicule.service.ts`
- [Promotions API](https://github.com/ivy0506/renteasy/blob/main/backend/src/promotions/promotions.service.ts): `backend/src/promotions/promotions.service.ts`

### Rental operations

- [Reservation API](https://github.com/ivy0506/renteasy/blob/main/backend/src/reservation/reservation.service.ts): `backend/src/reservation/reservation.service.ts`
- [Payment processing](https://github.com/ivy0506/renteasy/blob/main/backend/src/reglement/payment.service.ts): `backend/src/reglement/payment.service.ts`
- [Messaging API](https://github.com/ivy0506/renteasy/blob/main/backend/src/messages/messages.service.ts): `backend/src/messages/messages.service.ts`
- [Reviews, options, and agencies](https://github.com/ivy0506/renteasy/tree/main/backend/src): `backend/src`

### Other components

- **Renter**
- **Administrator**
- **Stripe**

## Connections

- Renter → Customer experience: uses (evidence: `README.md`)
- Customer experience → Home and promotions: routes to (evidence: `frontoffice/src/app/app.routes.ts`)
- Customer experience → Reservations and checkout: routes to (evidence: `frontoffice/src/app/app.routes.ts`)
- Customer experience → Customer messaging: routes to (evidence: `frontoffice/src/app/app.routes.ts`)
- Vehicle browsing → Vehicle catalog API: requests catalog
- Reservations and checkout → Reservation API: submits booking
- Reservations and checkout → Payment processing: starts payment
- Payment processing → Stripe: charges
- Customer messaging → Messaging API: uses API
- Wishlist → Reviews, options, and agencies: uses API
- Home and promotions → Promotions API: loads offers
- Customer experience → Authentication API: uses API
- Administrator → Management dashboard: uses (evidence: `README.md`)
- Management dashboard → Dashboard analytics: routes to (evidence: `admin_panel/src/app/app.routes.ts`)
- Management dashboard → Fleet and agency management: routes to (evidence: `admin_panel/src/app/app.routes.ts`)
- Management dashboard → Booking and client management: routes to (evidence: `admin_panel/src/app/app.routes.ts`)
- Admin sign-in → Authentication API: uses API
- Fleet and agency management → Vehicle catalog API: manages
- Booking and client management → Reservation API: manages
- Review moderation → Reviews, options, and agencies: moderates
- Authentication API → User management: delegates (evidence: `backend/src/auth/auth.service.ts`)
- Customer experience → Vehicle catalog API: calls API (evidence: `README.md`)
- Management dashboard → Vehicle catalog API: calls API (evidence: `README.md`)
