# ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system architecture

> Architecture diagram of the GitHub repository ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system, 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/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system
- Repository: https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system

## Overview

Smart PDS is a web application for ration-card beneficiaries and administrators to manage timed ration-distribution bookings. The principal workflow is beneficiary access, slot booking, confirmation and shop-side collection, with administration of booking status and stock. The repository also contains a separate landing-page experience illustrating queue balancing, allocation, analytics and mobile use. Backend excerpts show Supabase operations and an SMS service; other runtime links are limited to README-level behavior or remain unverified.

Main entry points: [`Backend/server.js`](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js) (Booking and login API), [`Backend/smsService.js`](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/smsService.js) (SMS notifications), [`Frontend`](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/Frontend) (Web application), [`landing/src/components`](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/landing/src/components) (Product showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Web application"]
  node_landing["Product showcase"]
end

subgraph group_booking["Booking services"]
  node_booking_api["Booking and login API<br/>[server.js]"]
  node_booking_state["Booking status<br/>[server.js]"]
end

subgraph group_operations["Operations and notifications"]
  node_stock_api["Stock management<br/>[server.js]"]
  node_supabase[("Supabase data store")]
  node_sms["SMS notifications<br/>[smsService.js]"]
  node_twilio["Twilio SMS"]
end

node_beneficiary(("Beneficiary"))
node_admin(("Administrator"))

node_beneficiary -->|"uses"| node_frontend
node_admin -->|"uses"| node_frontend
node_frontend -.->|"requests"| node_booking_api
node_booking_api -->|"reads and writes"| node_supabase
node_booking_api -->|"invokes"| node_sms
node_booking_api -->|"updates"| node_booking_state
node_admin -->|"manages stock"| node_stock_api
node_stock_api -->|"reads and writes"| node_supabase
node_sms -->|"stores notices"| node_supabase
node_sms -.->|"sends SMS"| node_twilio
node_landing -->|"illustrates booking"| node_beneficiary

click node_frontend "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/Frontend"
click node_landing "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/landing/src/components"
click node_booking_api "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js"
click node_booking_state "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js"
click node_stock_api "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js"
click node_sms "https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/smsService.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_landing toneBlue
class node_booking_api,node_booking_state toneAmber
class node_stock_api,node_supabase,node_sms,node_twilio toneMint
class node_beneficiary,node_admin toneIndigo
```

## Components

### User experience

- [Web application](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/Frontend): `Frontend`
- [Product showcase](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/tree/main/landing/src/components): `landing/src/components`

### Booking services

- [Booking and login API](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js): `Backend/server.js`
- [Booking status](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js): `Backend/server.js`

### Operations and notifications

- [Stock management](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/server.js): `Backend/server.js`
- **Supabase data store**
- [SMS notifications](https://github.com/ganeshbobbala/smart-pds-automated-time-slot-booking-distribution-system/blob/main/Backend/smsService.js): `Backend/smsService.js`
- **Twilio SMS**

### Other components

- **Beneficiary**
- **Administrator**

## Connections

- Beneficiary → Web application: uses
- Administrator → Web application: uses
- Web application → Booking and login API: requests
- Booking and login API → Supabase data store: reads and writes (evidence: `Backend/server.js`)
- Booking and login API → SMS notifications: invokes (evidence: `Backend/server.js`)
- Booking and login API → Booking status: updates (evidence: `Backend/server.js`)
- Administrator → Stock management: manages stock
- Stock management → Supabase data store: reads and writes (evidence: `Backend/server.js`)
- SMS notifications → Supabase data store: stores notices (evidence: `Backend/smsService.js`)
- SMS notifications → Twilio SMS: sends SMS (evidence: `Backend/smsService.js`)
- Product showcase → Beneficiary: illustrates booking
