# asthaaaaa07/nestlink architecture

> Architecture diagram of the GitHub repository asthaaaaa07/nestlink, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/asthaaaaa07/nestlink
- Repository: https://github.com/asthaaaaa07/nestlink

## Overview

##### Project type and purpose
- NestLink is currently a static, multi-page frontend prototype for a PropTech platform (web + mobile-responsive UI).
- It will evolve into a full-stack application offering rental listings, roommate matching, in-app communication, and service booking.

##### File structure
- Top-level files are all .html, .css, and a couple of .js files.
- No backend code yet; this is a pure static site scaffold:
- contact.html/css
- flats.html/css
- form.html/css
- match.html/css + match.js
- nav.css
- thankyou.html/css
- wadh.html/css + wadh.js
- No “src,” “backend,” or config files—UI layer only.

##### README for additional insights
- Lists core features and a future tech stack: HTML/CSS/JS frontend, optional Firebase/MongoDB backend in Phase 2.
- Mentions swipe-based matching logic, in-app messaging, and booking workflows.
- Phase 1: UI layout; Phase 2: backend integration.

##### Detail without over-segmenting
- Feature as its own service module (matching, listings, booking, messaging).
- Planned expansion points (authentication, notification).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Presentation Layer
    subgraph "Presentation Layer"
        ContactPage["Contact Page"]:::ui
        FlatsPage["Flats Listings Page"]:::ui
        BookingForm["Service Booking Form"]:::ui
        MatchPage["Roommate Matching Page"]:::ui
        ThankYouPage["Thank You Page"]:::ui
        WadhPage["Wadh Feature Page"]:::ui
        NavStyles["Navigation Styles"]:::ui
        README["README (Project Overview)"]:::ui
    end

    %% API Layer
    subgraph "API Layer"
        APIGateway["API Gateway / REST API"]:::backend
    end

    %% Business Logic Layer
    subgraph "Application Services"
        AuthService["Authentication & Authorization Service"]:::backend
        ListingsService["Rental Listings Service"]:::backend
        MatchingService["Roommate Matching Service"]:::backend
        BookingService["Service Booking Service"]:::backend
        MessagingService["Messaging / Notifications Service"]:::backend
    end

    %% Data Layer
    Database["Database (Firestore / MongoDB)"]:::db

    %% External Integrations
    subgraph "External Services"
        PaymentGateway["Payment Gateway"]:::external
        ServiceProviders["Home Service Providers"]:::external
        EmailSMS["Email / SMS Service"]:::external
    end

    %% User Flows
    User["User Browser / Mobile"]:::external

    User -->|"HTTP GET / HTML"| ContactPage
    User -->|"HTTP GET /flats.html"| FlatsPage
    User -->|"HTTP GET /form.html"| BookingForm
    User -->|"HTTP GET /match.html"| MatchPage
    User -->|"HTTP GET /thankyou.html"| ThankYouPage
    User -->|"HTTP GET /wadh.html"| WadhPage

    ContactPage -->|"AJAX / Fetch"| APIGateway
    FlatsPage -->|"GET /listings"| APIGateway
    BookingForm -->|"POST /bookings"| APIGateway
    MatchPage -->|"POST /match"| APIGateway
    ThankYouPage -->|"-- static confirmation --"| APIGateway
    WadhPage -->|"AJAX / Fetch"| APIGateway

    APIGateway -->|"validateToken"| AuthService
    APIGateway -->|"getListings"| ListingsService
    APIGateway -->|"processMatch"| MatchingService
    APIGateway -->|"createBooking"| BookingService
    APIGateway -->|"sendMessage"| MessagingService

    ListingsService -->|"CRUD listings"| Database
    MatchingService -->|"CRUD matches"| Database
    BookingService -->|"CRUD bookings"| Database
    MessagingService -->|"CRUD messages"| Database
    AuthService -->|"CRUD users"| Database

    BookingService -->|"processPayment"| PaymentGateway
    BookingService -->|"notifyProvider"| ServiceProviders
    MessagingService -->|"send notification"| EmailSMS

    %% Click Events
    click ContactPage "https://github.com/asthaaaaa07/nestlink/blob/main/contact.html"
    click FlatsPage "https://github.com/asthaaaaa07/nestlink/blob/main/flats.html"
    click BookingForm "https://github.com/asthaaaaa07/nestlink/blob/main/form.html"
    click MatchPage "https://github.com/asthaaaaa07/nestlink/blob/main/match.html"
    click ThankYouPage "https://github.com/asthaaaaa07/nestlink/blob/main/thankyou.html"
    click WadhPage "https://github.com/asthaaaaa07/nestlink/blob/main/wadh.html"
    click NavStyles "https://github.com/asthaaaaa07/nestlink/blob/main/nav.css"
    click README "https://github.com/asthaaaaa07/nestlink/blob/main/README.md"

    %% Styles
    classDef ui fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef backend fill:#90EE90,stroke:#333,stroke-width:1px
    classDef external fill:#FFA500,stroke:#333,stroke-width:1px
    classDef db fill:#B0C4DE,stroke:#333,stroke-width:1px
```
