# datarishavrathore/rishav-tour-travels architecture

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

- Interactive diagram: https://gitdiagram.com/datarishavrathore/rishav-tour-travels
- Repository: https://github.com/datarishavrathore/rishav-tour-travels

## Overview

This Flask application is a web frontend for a separately configured FastAPI backend. Users can view the home page, register or log in, and then reach customer or admin dashboards; authenticated users can also request a customer list. The sampled source shows the Flask routes making HTTP requests and rendering templates. Template contents and backend implementation were not provided, so their internal behavior and data storage are not represented.

Main entry points: [`app.py`](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py) (Flask Routes), [`templates/customer_dashboard.html`](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/customer_dashboard.html) (Customer Dashboard), [`templates/admin_dashboard.html`](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/admin_dashboard.html) (Admin Dashboard), [`templates/home.html`](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/home.html) (Home Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Interface"]
  node_routes["Flask Routes<br/>[app.py]"]
  node_home["Home Page<br/>[home.html]"]
  node_customer_dashboard["Customer Dashboard"]
  node_admin_dashboard["Admin Dashboard"]
  node_base_template["Base Template<br/>[base.html]"]
end

subgraph group_identity["Authentication"]
  node_registration["Registration Flow<br/>[app.py]"]
  node_register_page["Registration Page<br/>[register.html]"]
  node_login["Login Flow<br/>[app.py]"]
  node_login_page["Login Page<br/>[login.html]"]
end

subgraph group_customers["Customer Access"]
  node_directory["Customer Directory<br/>[app.py]"]
  node_customer_list["Customer List<br/>[customer_list.html]"]
end

node_visitor(("Visitor"))
node_backend["FastAPI Backend"]

node_visitor -->|"visits"| node_routes
node_routes -->|"renders"| node_home
node_routes -->|"routes signup"| node_registration
node_registration -->|"posts registration"| node_backend
node_registration -->|"renders"| node_register_page
node_routes -->|"routes login"| node_login
node_login -->|"posts credentials"| node_backend
node_login -->|"renders"| node_login_page
node_login -->|"redirects customer"| node_customer_dashboard
node_login -->|"redirects admin"| node_admin_dashboard
node_routes -->|"routes customers"| node_directory
node_directory -->|"fetches users"| node_backend
node_directory -->|"renders"| node_customer_list
node_routes -->|"renders"| node_admin_dashboard
node_routes -->|"renders"| node_customer_dashboard

click node_routes "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py"
click node_home "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/home.html"
click node_registration "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py"
click node_register_page "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/register.html"
click node_login "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py"
click node_login_page "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/login.html"
click node_customer_dashboard "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/customer_dashboard.html"
click node_admin_dashboard "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/admin_dashboard.html"
click node_directory "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py"
click node_customer_list "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/customer_list.html"
click node_base_template "https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/base.html"

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_routes,node_home,node_customer_dashboard,node_admin_dashboard,node_base_template toneBlue
class node_registration,node_register_page,node_login,node_login_page toneAmber
class node_directory,node_customer_list,node_backend toneMint
class node_visitor toneIndigo
```

## Components

### Web Interface

- [Flask Routes](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py): `app.py`
- [Home Page](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/home.html): `templates/home.html`
- [Customer Dashboard](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/customer_dashboard.html): `templates/customer_dashboard.html`
- [Admin Dashboard](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/admin_dashboard.html): `templates/admin_dashboard.html`
- [Base Template](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/base.html): `templates/base.html`

### Authentication

- [Registration Flow](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py): `app.py`
- [Registration Page](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/register.html): `templates/register.html`
- [Login Flow](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py): `app.py`
- [Login Page](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/login.html): `templates/login.html`

### Customer Access

- [Customer Directory](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/app.py): `app.py`
- [Customer List](https://github.com/datarishavrathore/rishav-tour-travels/blob/main/templates/customer_list.html): `templates/customer_list.html`

### Other components

- **Visitor**
- **FastAPI Backend**

## Connections

- Visitor → Flask Routes: visits (evidence: `app.py`)
- Flask Routes → Home Page: renders (evidence: `app.py`)
- Flask Routes → Registration Flow: routes signup (evidence: `app.py`)
- Registration Flow → FastAPI Backend: posts registration (evidence: `app.py`)
- Registration Flow → Registration Page: renders (evidence: `app.py`)
- Flask Routes → Login Flow: routes login (evidence: `app.py`)
- Login Flow → FastAPI Backend: posts credentials (evidence: `app.py`)
- Login Flow → Login Page: renders (evidence: `app.py`)
- Login Flow → Customer Dashboard: redirects customer (evidence: `app.py`)
- Login Flow → Admin Dashboard: redirects admin (evidence: `app.py`)
- Flask Routes → Customer Directory: routes customers (evidence: `app.py`)
- Customer Directory → FastAPI Backend: fetches users (evidence: `app.py`)
- Customer Directory → Customer List: renders (evidence: `app.py`)
- Flask Routes → Admin Dashboard: renders (evidence: `app.py`)
- Flask Routes → Customer Dashboard: renders (evidence: `app.py`)
