# cristianesono/lebadilconciergerie architecture

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

- Interactive diagram: https://gitdiagram.com/cristianesono/lebadilconciergerie
- Repository: https://github.com/cristianesono/lebadilconciergerie

## Overview

Le BADIL Conciergerie is a Dakar concierge and booking service, with student reservations and corporate event inquiries alongside an admin dashboard. The public workflow shown in the frontend supports package selection, checkout, and payment-method choice; the server excerpt documents reservation/payment handling, admin functions, settings, and email reminders. The serverless entrypoint loads the Express server. The excerpts are partial and there is no README, so some frontend-to-API and persistence relationships cannot be verified and are left unconnected.

Main entry points: [`app.js`](https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js) (Interactive frontend), [`server.js`](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js) (Express application), [`api/index.js`](https://github.com/cristianesono/lebadilconciergerie/blob/main/api/index.js) (Serverless entrypoint), [`admin.html`](https://github.com/cristianesono/lebadilconciergerie/blob/main/admin.html) (Admin login page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public experience"]
  node_frontend["Interactive frontend<br/>[app.js]"]
  node_homepage["Concierge site<br/>[index.html]"]
  node_corporate["Corporate inquiries<br/>[app.js]"]
end

subgraph group_booking["Booking and payments"]
  node_checkout["Reservation checkout<br/>[app.js]"]
  node_payment_api["Payment endpoint<br/>[server.js]"]
  node_reservation_data[("Reservation records<br/>[reservations.json]")]
  node_email["Email reminders<br/>[server.js]"]
end

subgraph group_operations["Admin operations"]
  node_admin_login["Admin authentication<br/>[server.js]"]
  node_admin_page["Admin login page<br/>[admin.html]"]
  node_dashboard["Admin dashboard"]
  node_settings["Settings API<br/>[server.js]"]
  node_settings_data[("Settings records<br/>[settings.json]")]
  node_leads["Corporate lead API<br/>[server.js]"]
  node_lead_data[("Corporate lead records")]
  node_users[("User records<br/>[users.json]")]
end

subgraph group_runtime["Server runtime"]
  node_express["Express application<br/>[server.js]"]
  node_vercel_entry["Serverless entrypoint<br/>[index.js]"]
end

node_visitor(("Visitor"))
node_paytech["PayTech"]

node_visitor -->|"uses"| node_frontend
node_frontend -->|"submits inquiries"| node_corporate
node_frontend -->|"selects packages"| node_checkout
node_checkout -.->|"posts payment request"| node_payment_api
node_payment_api -->|"handles notifications"| node_paytech
node_express -->|"serves login page"| node_admin_page
node_express -->|"serves protected page"| node_dashboard
node_vercel_entry -->|"loads"| node_express

click node_frontend "https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js"
click node_homepage "https://github.com/cristianesono/lebadilconciergerie/blob/main/index.html"
click node_corporate "https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js"
click node_checkout "https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js"
click node_payment_api "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_reservation_data "https://github.com/cristianesono/lebadilconciergerie/blob/main/data/reservations.json"
click node_email "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_admin_login "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_admin_page "https://github.com/cristianesono/lebadilconciergerie/blob/main/admin.html"
click node_dashboard "https://github.com/cristianesono/lebadilconciergerie/blob/main/admin-dashboard.html"
click node_settings "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_settings_data "https://github.com/cristianesono/lebadilconciergerie/blob/main/data/settings.json"
click node_leads "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_lead_data "https://github.com/cristianesono/lebadilconciergerie/blob/main/data/corporate_leads.json"
click node_users "https://github.com/cristianesono/lebadilconciergerie/blob/main/data/users.json"
click node_express "https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js"
click node_vercel_entry "https://github.com/cristianesono/lebadilconciergerie/blob/main/api/index.js"

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_frontend,node_homepage,node_corporate toneBlue
class node_checkout,node_payment_api,node_reservation_data,node_email toneAmber
class node_admin_login,node_admin_page,node_dashboard,node_settings,node_settings_data,node_leads,node_lead_data,node_users toneMint
class node_express,node_vercel_entry toneRose
class node_visitor,node_paytech toneIndigo
```

## Components

### Public experience

- [Interactive frontend](https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js): `app.js`
- [Concierge site](https://github.com/cristianesono/lebadilconciergerie/blob/main/index.html): `index.html`
- [Corporate inquiries](https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js): `app.js`

### Booking and payments

- [Reservation checkout](https://github.com/cristianesono/lebadilconciergerie/blob/main/app.js): `app.js`
- [Payment endpoint](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`
- [Reservation records](https://github.com/cristianesono/lebadilconciergerie/blob/main/data/reservations.json): `data/reservations.json`
- [Email reminders](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`

### Admin operations

- [Admin authentication](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`
- [Admin login page](https://github.com/cristianesono/lebadilconciergerie/blob/main/admin.html): `admin.html`
- [Admin dashboard](https://github.com/cristianesono/lebadilconciergerie/blob/main/admin-dashboard.html): `admin-dashboard.html`
- [Settings API](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`
- [Settings records](https://github.com/cristianesono/lebadilconciergerie/blob/main/data/settings.json): `data/settings.json`
- [Corporate lead API](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`
- [Corporate lead records](https://github.com/cristianesono/lebadilconciergerie/blob/main/data/corporate_leads.json): `data/corporate_leads.json`
- [User records](https://github.com/cristianesono/lebadilconciergerie/blob/main/data/users.json): `data/users.json`

### Server runtime

- [Express application](https://github.com/cristianesono/lebadilconciergerie/blob/main/server.js): `server.js`
- [Serverless entrypoint](https://github.com/cristianesono/lebadilconciergerie/blob/main/api/index.js): `api/index.js`

### Other components

- **Visitor**
- **PayTech**

## Connections

- Visitor → Interactive frontend: uses (evidence: `app.js`)
- Interactive frontend → Corporate inquiries: submits inquiries (evidence: `app.js`)
- Interactive frontend → Reservation checkout: selects packages (evidence: `app.js`)
- Reservation checkout → Payment endpoint: posts payment request
- Payment endpoint → PayTech: handles notifications (evidence: `server.js`)
- Express application → Admin login page: serves login page (evidence: `server.js`)
- Express application → Admin dashboard: serves protected page (evidence: `server.js`)
- Serverless entrypoint → Express application: loads (evidence: `api/index.js`)
