# akoliyanirmal/nscode-realestate architecture

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

- Interactive diagram: https://gitdiagram.com/akoliyanirmal/nscode-realestate
- Repository: https://github.com/akoliyanirmal/nscode-realestate

## Overview

##### Project type and purpose
- This is a Next.js–based frontend web application (a marketing/site front end for a real-estate service) that uses React components, Tailwind CSS for styling, and is deployed on Vercel.
- There is no separate “backend” directory; data is either fetched at build time (SSG) or on the server (SSR) via Next.js page functions.

##### File structure
- Top-level configs: next.config.js, tailwind.config.js, jsconfig.json, ESLint config, package.json, etc.
- public/: static assets (images, favicon, etc.) served directly by Vercel’s CDN.
- src/pages/: file-based routing—each .jsx file becomes a route (home, Aboutus, BlogDetail, etc.). Special files (_app.jsx, _document.jsx) wrap all pages.
- src/components/: reusable UI building blocks (header, footer, hero, OurTeam, Properties, etc.).
- src/styles/: global CSS (tailwind imports, overrides).

##### README
- Confirms stack: Next.js, Tailwind CSS, deployed on Vercel.
- No mention of external APIs or databases—assume mostly static/SSR content, possibly headless CMS or markdown files (not shown in file tree).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% User Layer
    Browser["End User Browser"]:::external

    %% Hosting & CDN Layer
    subgraph "Vercel Platform"
        direction TB
        CDN["Vercel CDN"]:::static
        Serverless["Serverless Runtime"]:::compute
    end

    %% Next.js Application Layer
    subgraph "Next.js Application"
        direction TB

        subgraph "Build Process" 
            direction TB
            Build["Next.js Build Process"]:::compute
            Tailwind["Tailwind CSS Engine"]:::compute
        end

        subgraph "Runtime (SSR)" 
            direction TB
            SSR["SSR Serverless Function"]:::compute
        end
    end

    %% Code Modules
    subgraph "Source Code"
        direction TB
        subgraph "Page Routing Layer (src/pages)" 
            direction TB
            Home["Home / Index"]:::code
            About["About Us"]:::code
            Blog["Blog Detail"]:::code
            FAQ["FAQ"]:::code
            Pricing["Pricing"]:::code
            PropDetail["Properties Detail"]:::code
            Auth["Login/Signup"]:::code
            Error404["Error 404"]:::code
            AppWrapper["_app.jsx"]:::code
            Document["_document.jsx"]:::code
        end

        subgraph "React Component Library (src/components)" 
            direction TB
            Header["Header"]:::code
            Footer["Footer"]:::code
            Hero["Hero Section"]:::code
            Services["Services Section"]:::code
            Properties["Properties Showcase"]:::code
            OurTeam["Our Team Section"]:::code
            Markets["Real Estate Markets"]:::code
            Photos["Photo Gallery"]:::code
            Reviews["Reviews Section"]:::code
            ThemeChanger["Theme Changer Utility"]:::code
        end

        subgraph "Global Configuration & Dependencies"
            direction TB
            Package["package.json / package-lock.json"]:::code
            JSConfig["jsconfig.json"]:::code
            ESLint[".eslintrc.json"]:::code
            GitIgnore[".gitignore"]:::code
            README["README.md"]:::code
        end

        subgraph "Static Assets (public/)" 
            StaticAssets["public/ Directory"]:::static
        end

        subgraph "Styles (src/styles)"
            GlobalsCSS["globals.css"]:::code
        end
    end

    %% Connections User to Hosting
    Browser -->|"requests page"| CDN
    Browser -->|"requests dynamic SSR"| Serverless

    %% Build Process flows
    Build -->|"generates static HTML/CSS/JS"| CDN
    Build -->|"integrates CSS"| Tailwind
    Tailwind -->|"injects styles"| Build

    %% Runtime flows
    Serverless --> SSR
    SSR -->|"renders pages"| PageRoutingLayer[" "] 
    SSR -->|"fetches data"| External["External Data Source"]:::external

    %% Pages use components
    PageRoutingLayer --> Home
    PageRoutingLayer --> About
    PageRoutingLayer --> Blog
    PageRoutingLayer --> FAQ
    PageRoutingLayer --> Pricing
    PageRoutingLayer --> PropDetail
    PageRoutingLayer --> Auth
    PageRoutingLayer --> Error404
    PageRoutingLayer --> AppWrapper
    PageRoutingLayer --> Document

    Home --> Header
    Home --> Hero
    Home --> Services
    Home --> Properties
    Home --> Footer

    About --> Header
    About --> Footer

    Blog --> Header
    Blog --> Footer

    Pricing --> Header
    Pricing --> Footer

    PropDetail --> Header
    PropDetail --> Footer

    Auth --> Header
    Auth --> Footer

    Error404 --> Header
    Error404 --> Footer

    %% Components inter-relations
    Header --> ThemeChanger
    Footer --> ThemeChanger

    %% Styles and assets
    Build --> GlobalsCSS
    Browser --> StaticAssets

    %% Click Events
    click Build "https://github.com/akoliyanirmal/nscode-realestate/blob/main/next.config.js"
    click Tailwind "https://github.com/akoliyanirmal/nscode-realestate/blob/main/tailwind.config.js"
    click Tailwind "https://github.com/akoliyanirmal/nscode-realestate/blob/main/postcss.config.js"
    click GlobalsCSS "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/styles/globals.css"
    click StaticAssets "https://github.com/akoliyanirmal/nscode-realestate/tree/main/public/"
    click Header "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/header.jsx"
    click Footer "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/footer.jsx"
    click Hero "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/hero.jsx"
    click Services "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/services.jsx"
    click Properties "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/Properties.jsx"
    click OurTeam "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/OurTeam.jsx"
    click Markets "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/RealEstateMarkets.jsx"
    click Photos "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/Photos.jsx"
    click Reviews "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/review.jsx"
    click ThemeChanger "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/components/themeChanger.jsx"
    click Home "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/home.jsx"
    click Home "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/index.jsx"
    click About "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/Aboutus.jsx"
    click Blog "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/BlogDetail.jsx"
    click FAQ "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/Faq.jsx"
    click Pricing "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/Pricing.jsx"
    click PropDetail "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/PropertiesDetail.jsx"
    click Auth "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/LogInSignUp.jsx"
    click Error404 "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/Error404Page.jsx"
    click AppWrapper "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/_app.jsx"
    click Document "https://github.com/akoliyanirmal/nscode-realestate/blob/main/src/pages/_document.jsx"
    click Package "https://github.com/akoliyanirmal/nscode-realestate/blob/main/package.json"
    click JSConfig "https://github.com/akoliyanirmal/nscode-realestate/blob/main/jsconfig.json"
    click ESLint "https://github.com/akoliyanirmal/nscode-realestate/blob/main/.eslintrc.json"
    click GitIgnore "https://github.com/akoliyanirmal/nscode-realestate/blob/main/.gitignore"
    click README "https://github.com/akoliyanirmal/nscode-realestate/blob/main/README.md"

    %% Styles
    classDef compute fill:#cce5ff,stroke:#004085,color:#004085
    classDef static fill:#d4edda,stroke:#155724,color:#155724
    classDef code fill:#fff3cd,stroke:#856404,color:#856404
    classDef external stroke-dasharray: 5 5,stroke:#6c757d,color:#6c757d
```
