# nextopsvideos/myshuttle architecture

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

- Interactive diagram: https://gitdiagram.com/nextopsvideos/myshuttle
- Repository: https://github.com/nextopsvideos/myshuttle

## Overview

MyShuttle is a Java/JEE shuttle-booking sample whose stated product includes a web front end, booking, an admin portal, driver control, an order service, and an integration service. The visible runtime code also includes route data and a distance calculator. The source excerpts do not show servlet mappings, persistence calls, or service wiring, so those relationships are left unverified. The README establishes the product capabilities; implementation details for most of them are inferred only from the file tree.

Main entry points: [`src/main/webapp`](https://github.com/nextopsvideos/myshuttle/tree/master/src/main/webapp) (Web pages), [`src/main/java/com/microsoft/example/DataAccess.java`](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/DataAccess.java) (Data access), [`src/main/java/com/microsoft/example/servlet`](https://github.com/nextopsvideos/myshuttle/tree/master/src/main/java/com/microsoft/example/servlet) (Servlet endpoints), [`src/main/java/com/microsoft/exampledep/DistanceCalculator.java`](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/exampledep/DistanceCalculator.java) (Distance calculation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_web["Web pages"]
  node_booking["Booking interface<br/>[home.jsp]"]
  node_admin["Admin portal<br/>[dashboard.jsp]"]
  node_login["Login pages<br/>[index.jsp]"]
  node_driver["Driver control<br/>[dashboard.jsp]"]
end

subgraph group_services["Application services"]
  node_servlets["Servlet endpoints"]
  node_loginservlet["Login handler<br/>[LoginServlet.java]"]
  node_orders["Order service<br/>[Servlet.java]"]
  node_integration["Integration service"]
end

subgraph group_domain["Route domain"]
  node_route["Route data<br/>[Route.java]"]
  node_distance["Distance calculation"]
  node_employee["Employee model<br/>[Employee.java]"]
  node_fare["Fare model<br/>[Fare.java]"]
end

subgraph group_persistence["Persistence"]
  node_dataaccess["Data access<br/>[DataAccess.java]"]
  node_mysql[("MySQL database<br/>[schema.sql]")]
end

node_user(("Application user"))

node_user -->|"uses"| node_web
node_web -->|"offers booking"| node_booking
node_web -->|"offers admin"| node_admin
node_web -->|"offers driver control"| node_driver
node_distance -->|"reads routes"| node_route
node_servlets -.->|"may delegate"| node_dataaccess
node_dataaccess -.->|"may access"| node_mysql

click node_web "https://github.com/nextopsvideos/myshuttle/tree/master/src/main/webapp"
click node_booking "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/home.jsp"
click node_admin "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/dashboard.jsp"
click node_login "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/index.jsp"
click node_servlets "https://github.com/nextopsvideos/myshuttle/tree/master/src/main/java/com/microsoft/example/servlet"
click node_loginservlet "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/servlet/LoginServlet.java"
click node_orders "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/servlet/Servlet.java"
click node_integration "https://github.com/nextopsvideos/myshuttle/tree/master/src/main/java/com/microsoft/exampledep"
click node_driver "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/dashboard.jsp"
click node_dataaccess "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/DataAccess.java"
click node_mysql "https://github.com/nextopsvideos/myshuttle/blob/master/src/db/schema.sql"
click node_route "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/exampledep/Route.java"
click node_distance "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/exampledep/DistanceCalculator.java"
click node_employee "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/models/Employee.java"
click node_fare "https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/models/Fare.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_web,node_booking,node_admin,node_login,node_driver,node_user toneBlue
class node_servlets,node_loginservlet,node_orders,node_integration toneAmber
class node_route,node_distance,node_employee,node_fare toneMint
class node_dataaccess,node_mysql toneRose
```

## Components

### Web experience

- [Web pages](https://github.com/nextopsvideos/myshuttle/tree/master/src/main/webapp): `src/main/webapp`
- [Booking interface](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/home.jsp): `src/main/webapp/home.jsp`
- [Admin portal](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/dashboard.jsp): `src/main/webapp/dashboard.jsp`
- [Login pages](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/index.jsp): `src/main/webapp/index.jsp`
- [Driver control](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/webapp/dashboard.jsp): `src/main/webapp/dashboard.jsp`

### Application services

- [Servlet endpoints](https://github.com/nextopsvideos/myshuttle/tree/master/src/main/java/com/microsoft/example/servlet): `src/main/java/com/microsoft/example/servlet`
- [Login handler](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/servlet/LoginServlet.java): `src/main/java/com/microsoft/example/servlet/LoginServlet.java`
- [Order service](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/servlet/Servlet.java): `src/main/java/com/microsoft/example/servlet/Servlet.java`
- [Integration service](https://github.com/nextopsvideos/myshuttle/tree/master/src/main/java/com/microsoft/exampledep): `src/main/java/com/microsoft/exampledep`

### Route domain

- [Route data](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/exampledep/Route.java): `src/main/java/com/microsoft/exampledep/Route.java`
- [Distance calculation](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/exampledep/DistanceCalculator.java): `src/main/java/com/microsoft/exampledep/DistanceCalculator.java`
- [Employee model](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/models/Employee.java): `src/main/java/com/microsoft/example/models/Employee.java`
- [Fare model](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/models/Fare.java): `src/main/java/com/microsoft/example/models/Fare.java`

### Persistence

- [Data access](https://github.com/nextopsvideos/myshuttle/blob/master/src/main/java/com/microsoft/example/DataAccess.java): `src/main/java/com/microsoft/example/DataAccess.java`
- [MySQL database](https://github.com/nextopsvideos/myshuttle/blob/master/src/db/schema.sql): `src/db/schema.sql`

### Other components

- **Application user**

## Connections

- Application user → Web pages: uses (evidence: `README.md`)
- Web pages → Booking interface: offers booking (evidence: `README.md`)
- Web pages → Admin portal: offers admin (evidence: `README.md`)
- Web pages → Driver control: offers driver control (evidence: `README.md`)
- Distance calculation → Route data: reads routes (evidence: `src/main/java/com/microsoft/exampledep/DistanceCalculator.java`)
- Servlet endpoints → Data access: may delegate
- Data access → MySQL database: may access
