# looloo-creator/looloo-web architecture

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

- Interactive diagram: https://gitdiagram.com/looloo-creator/looloo-web
- Repository: https://github.com/looloo-creator/looloo-web

## Overview

looloo-web is an Angular web application for authenticated tour and account administration. Users enter through login or registration, then reach a dashboard and tour workflows for listing tours, adding tours and members, managing accounts, and viewing reports. The app also provides email verification and UI/extra pages. The graph shows documented route dispatch and sampled service relationships; several page-to-service calls were not visible in the excerpts, so those links are omitted. The backend is represented only where the shared request service shows its API calls.

Main entry points: [`src/app/app-routing.module.ts`](https://github.com/looloo-creator/looloo-web/blob/master/src/app/app-routing.module.ts) (Route dispatch), [`src/app/pages/tours/tours-routing.module.ts`](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/tours-routing.module.ts) (Tour routes), [`src/app/services/common.service.ts`](https://github.com/looloo-creator/looloo-web/blob/master/src/app/services/common.service.ts) (HTTP and UI utilities), [`src/app/pages/authentication/authentication.routing.ts`](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/authentication.routing.ts) (Authentication routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_bootstrap["Application bootstrap<br/>[main.ts]"]
  node_routing["Route dispatch"]
  node_full["Authenticated layout<br/>[full.component.ts]"]
  node_blank["Public layout<br/>[blank.component.ts]"]
  node_dashboard["Dashboard"]
  node_notfound["Not found page"]
end

subgraph group_identity["Identity"]
  node_authroutes["Authentication routes"]
  node_login["Login<br/>[login.component.ts]"]
  node_register["Registration"]
  node_verification["Email verification"]
  node_guards["Access guards<br/>[auth.guard.ts]"]
  node_authservice["Authentication service<br/>[auth.service.ts]"]
end

subgraph group_tours["Tour operations"]
  node_tourroutes["Tour routes"]
  node_tourlist["Tour listing"]
  node_addtour["Add tour"]
  node_addmember["Add member"]
  node_accounts["Account management"]
  node_preview["Account preview"]
  node_report["Reports"]
end

subgraph group_services["Shared services"]
  node_tourservices["Tour data services"]
  node_common["HTTP and UI utilities<br/>[common.service.ts]"]
  node_interceptor["Token interceptor"]
  node_confirm["Confirmation dialog"]
end

subgraph group_extras["Other pages"]
  node_extras["UI and extra pages"]
end

node_user(("User"))
node_api{{"Application API"}}

node_user -->|"opens app"| node_bootstrap
node_bootstrap -->|"bootstraps module"| node_routing
node_routing -->|"routes protected pages"| node_full
node_routing -->|"routes public pages"| node_blank
node_routing -->|"checks access"| node_guards
node_routing -->|"loads tours"| node_tourroutes
node_routing -->|"loads dashboard"| node_dashboard
node_routing -->|"loads page modules"| node_extras
node_routing -->|"loads authentication"| node_authroutes
node_routing -->|"falls back to"| node_notfound
node_authroutes -->|"routes to"| node_login
node_authroutes -->|"routes to"| node_register
node_authroutes -->|"routes to"| node_verification
node_guards -->|"checks login"| node_authservice
node_tourroutes -->|"routes to"| node_tourlist
node_tourroutes -->|"routes to"| node_addtour
node_tourroutes -->|"routes to"| node_addmember
node_tourroutes -->|"routes to"| node_accounts
node_tourroutes -->|"routes to"| node_report
node_accounts -->|"uses preview"| node_preview
node_authservice -->|"requests through"| node_common
node_tourservices -->|"uses requests"| node_common
node_common -->|"sends HTTP requests"| node_api
node_common -->|"opens dialog"| node_confirm
node_interceptor -.->|"uses auth state"| node_authservice
node_interceptor -.->|"uses shared service"| node_common

click node_bootstrap "https://github.com/looloo-creator/looloo-web/blob/master/src/main.ts"
click node_routing "https://github.com/looloo-creator/looloo-web/blob/master/src/app/app-routing.module.ts"
click node_full "https://github.com/looloo-creator/looloo-web/blob/master/src/app/layouts/full/full.component.ts"
click node_blank "https://github.com/looloo-creator/looloo-web/blob/master/src/app/layouts/blank/blank.component.ts"
click node_dashboard "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/dashboard/dashboard.component.ts"
click node_authroutes "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/authentication.routing.ts"
click node_login "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/login/login.component.ts"
click node_register "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/register/register.component.ts"
click node_verification "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/email-verification/email-verification.component.ts"
click node_guards "https://github.com/looloo-creator/looloo-web/blob/master/src/app/guard/auth.guard.ts"
click node_authservice "https://github.com/looloo-creator/looloo-web/blob/master/src/app/services/auth/auth.service.ts"
click node_tourroutes "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/tours-routing.module.ts"
click node_tourlist "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/tourslist/tourslist.component.ts"
click node_addtour "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/addtour/addtour.component.ts"
click node_addmember "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/addmember/addmember.component.ts"
click node_accounts "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/accounts/accounts.component.ts"
click node_preview "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/accounts/preview/preview.component.ts"
click node_report "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/report/report.component.ts"
click node_tourservices "https://github.com/looloo-creator/looloo-web/tree/master/src/app/services/pages/tours"
click node_common "https://github.com/looloo-creator/looloo-web/blob/master/src/app/services/common.service.ts"
click node_interceptor "https://github.com/looloo-creator/looloo-web/blob/master/src/app/interceptor/token.interceptor.ts"
click node_confirm "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/common/confirm-dialog/confirm-dialog.component.ts"
click node_extras "https://github.com/looloo-creator/looloo-web/tree/master/src/app/pages/ui-components"
click node_notfound "https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/pagenotfound/pagenotfound.component.ts"

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_bootstrap,node_routing,node_full,node_blank,node_dashboard,node_notfound,node_user toneBlue
class node_authroutes,node_login,node_register,node_verification,node_guards,node_authservice toneAmber
class node_tourroutes,node_tourlist,node_addtour,node_addmember,node_accounts,node_preview,node_report,node_api toneMint
class node_tourservices,node_common,node_interceptor,node_confirm toneRose
class node_extras toneIndigo
```

## Components

### Application shell

- [Application bootstrap](https://github.com/looloo-creator/looloo-web/blob/master/src/main.ts): `src/main.ts`
- [Route dispatch](https://github.com/looloo-creator/looloo-web/blob/master/src/app/app-routing.module.ts): `src/app/app-routing.module.ts`
- [Authenticated layout](https://github.com/looloo-creator/looloo-web/blob/master/src/app/layouts/full/full.component.ts): `src/app/layouts/full/full.component.ts`
- [Public layout](https://github.com/looloo-creator/looloo-web/blob/master/src/app/layouts/blank/blank.component.ts): `src/app/layouts/blank/blank.component.ts`
- [Dashboard](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/dashboard/dashboard.component.ts): `src/app/pages/dashboard/dashboard.component.ts`
- [Not found page](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/pagenotfound/pagenotfound.component.ts): `src/app/pages/pagenotfound/pagenotfound.component.ts`

### Identity

- [Authentication routes](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/authentication.routing.ts): `src/app/pages/authentication/authentication.routing.ts`
- [Login](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/login/login.component.ts): `src/app/pages/authentication/login/login.component.ts`
- [Registration](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/register/register.component.ts): `src/app/pages/authentication/register/register.component.ts`
- [Email verification](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/authentication/email-verification/email-verification.component.ts): `src/app/pages/authentication/email-verification/email-verification.component.ts`
- [Access guards](https://github.com/looloo-creator/looloo-web/blob/master/src/app/guard/auth.guard.ts): `src/app/guard/auth.guard.ts`
- [Authentication service](https://github.com/looloo-creator/looloo-web/blob/master/src/app/services/auth/auth.service.ts): `src/app/services/auth/auth.service.ts`

### Tour operations

- [Tour routes](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/tours-routing.module.ts): `src/app/pages/tours/tours-routing.module.ts`
- [Tour listing](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/tourslist/tourslist.component.ts): `src/app/pages/tours/tourslist/tourslist.component.ts`
- [Add tour](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/addtour/addtour.component.ts): `src/app/pages/tours/addtour/addtour.component.ts`
- [Add member](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/addmember/addmember.component.ts): `src/app/pages/tours/addmember/addmember.component.ts`
- [Account management](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/accounts/accounts.component.ts): `src/app/pages/tours/accounts/accounts.component.ts`
- [Account preview](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/accounts/preview/preview.component.ts): `src/app/pages/tours/accounts/preview/preview.component.ts`
- [Reports](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/tours/report/report.component.ts): `src/app/pages/tours/report/report.component.ts`

### Shared services

- [Tour data services](https://github.com/looloo-creator/looloo-web/tree/master/src/app/services/pages/tours): `src/app/services/pages/tours`
- [HTTP and UI utilities](https://github.com/looloo-creator/looloo-web/blob/master/src/app/services/common.service.ts): `src/app/services/common.service.ts`
- [Token interceptor](https://github.com/looloo-creator/looloo-web/blob/master/src/app/interceptor/token.interceptor.ts): `src/app/interceptor/token.interceptor.ts`
- [Confirmation dialog](https://github.com/looloo-creator/looloo-web/blob/master/src/app/pages/common/confirm-dialog/confirm-dialog.component.ts): `src/app/pages/common/confirm-dialog/confirm-dialog.component.ts`

### Other pages

- [UI and extra pages](https://github.com/looloo-creator/looloo-web/tree/master/src/app/pages/ui-components): `src/app/pages/ui-components`

### Other components

- **User**
- **Application API**

## Connections

- User → Application bootstrap: opens app (evidence: `src/main.ts`)
- Application bootstrap → Route dispatch: bootstraps module
- Route dispatch → Authenticated layout: routes protected pages (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Public layout: routes public pages (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Access guards: checks access (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Tour routes: loads tours (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Dashboard: loads dashboard
- Route dispatch → UI and extra pages: loads page modules (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Authentication routes: loads authentication (evidence: `src/app/app-routing.module.ts`)
- Route dispatch → Not found page: falls back to (evidence: `src/app/app-routing.module.ts`)
- Authentication routes → Login: routes to (evidence: `src/app/pages/authentication/authentication.routing.ts`)
- Authentication routes → Registration: routes to (evidence: `src/app/pages/authentication/authentication.routing.ts`)
- Authentication routes → Email verification: routes to (evidence: `src/app/pages/authentication/authentication.routing.ts`)
- Access guards → Authentication service: checks login (evidence: `src/app/guard/auth.guard.ts`)
- Tour routes → Tour listing: routes to (evidence: `src/app/pages/tours/tours-routing.module.ts`)
- Tour routes → Add tour: routes to (evidence: `src/app/pages/tours/tours-routing.module.ts`)
- Tour routes → Add member: routes to (evidence: `src/app/pages/tours/tours-routing.module.ts`)
- Tour routes → Account management: routes to (evidence: `src/app/pages/tours/tours-routing.module.ts`)
- Tour routes → Reports: routes to (evidence: `src/app/pages/tours/tours-routing.module.ts`)
- Account management → Account preview: uses preview (evidence: `src/app/pages/tours/accounts/accounts.component.ts`)
- Authentication service → HTTP and UI utilities: requests through (evidence: `src/app/services/auth/auth.service.ts`)
- Tour data services → HTTP and UI utilities: uses requests (evidence: `src/app/services/pages/tours/accounts.service.ts`)
- HTTP and UI utilities → Application API: sends HTTP requests (evidence: `src/app/services/common.service.ts`)
- HTTP and UI utilities → Confirmation dialog: opens dialog (evidence: `src/app/services/common.service.ts`)
- Token interceptor → Authentication service: uses auth state (evidence: `src/app/interceptor/token.interceptor.ts`)
- Token interceptor → HTTP and UI utilities: uses shared service (evidence: `src/app/interceptor/token.interceptor.ts`)
