# roshaneleshaddai/rdconclave architecture

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

- Interactive diagram: https://gitdiagram.com/roshaneleshaddai/rdconclave
- Repository: https://github.com/roshaneleshaddai/rdconclave

## Overview

##### Project type and purpose
- This is a full-stack web application built on Next.js (React + Node.js).
- It delivers a static/dynamic site for a conference or event platform (pages like “hackathon”, “schedule”, “speakers”, “registrations”), plus serverless API endpoints for user registration and retrieval.
- Uses file-system routing (“app/…”), Server Components and Client Components, SSR/SSG, and Tailwind CSS for styling.

##### File structure
- Top-level “app” directory holds the UI and API routes:
– app/page.jsx and other route folders (hackathon/, meet/, etc.) → React pages served by Next.js.
– app/components/ → reusable header, footer, startpage components.
– app/api/register/route.js and app/api/registrations/route.js → Next.js Route Handlers (serverless functions).
- “public” directory contains static assets (images, PDFs, templates).
- “.next” directory is the build output (SSR bundles, static HTML, client JS chunks).
- Config files: next.config.mjs, jsconfig.json, tailwind.config.js, postcss.config.* for routing, TypeScript support, CSS/styling pipeline.

##### README for additional insights
- Standard create-next-app with next/font optimization.
- No explicit database driver in the tree; API handlers likely interact with an external database or service (to be drawn as a component).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client Layer
    subgraph "Client Layer"
        Browser["User's Browser"]:::external
    end

    %% Next.js Application Server
    subgraph "Next.js Application Server" 
        direction TB
        subgraph "Frontend UI (React)" 
            direction TB
            app_page["app/page.jsx"]:::frontend
            app_layout["app/layout.jsx"]:::frontend
            header["Header component"]:::frontend
            footer["Footer component"]:::frontend
            startpage["Startpage component"]:::frontend
            hackathon["Hackathon page"]:::frontend
            meet["Meet page"]:::frontend
            journalpublications["Journal Publications page"]:::frontend
            schedule["Schedule page"]:::frontend
            speakers["Speakers page"]:::frontend
            contact_us["Contact Us page"]:::frontend
            registrations_ui["Registrations UI page"]:::frontend
            regi_ui["Registration form UI page"]:::frontend
        end

        subgraph "Backend API (Serverless Functions)" 
            direction TB
            register_api["Register API"]:::backend
            registrations_api["Registrations API"]:::backend
        end

        subgraph "Configuration & Assets"
            direction TB
            tailwind_config["tailwind.config.js"]:::infra
            postcss_config_js["postcss.config.js"]:::infra
            postcss_config_mjs["postcss.config.mjs"]:::infra
            next_config["next.config.mjs"]:::infra
            jsconfig["jsconfig.json"]:::infra
            globals_css["app/globals.css"]:::frontend
        end
    end

    %% Infrastructure Layer
    subgraph "Infrastructure"
        direction TB
        CDN["Static Asset CDN"]:::external
        Database["External Database"]:::external
        Vercel["Vercel Platform"]:::infra
    end

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        direction TB
        GitHub["GitHub Repo"]:::infra
        CI["CI Build (npm build)"]:::infra
    end

    %% Build Output
    subgraph "Build Output"
        direction TB
        next_dir[".next/"]:::infra
        next_static[".next/static/"]:::infra
        next_server[".next/server/"]:::infra
    end

    %% Connections
    Browser -->|GET pages| app_page
    Browser -->|GET pages| hackathon
    Browser -->|GET pages| meet
    Browser -->|GET pages| journalpublications
    Browser -->|GET pages| schedule
    Browser -->|GET pages| speakers
    Browser -->|GET pages| contact_us
    Browser -->|GET pages| registrations_ui
    Browser -->|GET pages| regi_ui

    Browser -->|GET assets| CDN
    Browser -->|POST /api/register| register_api
    Browser -->|GET /api/registrations| registrations_api

    register_api -->|read/write| Database
    registrations_api -->|read| Database

    GitHub --> CI
    CI -->|deploy| Vercel
    Vercel -->|hosts| NextJSApp["Next.js Application Server"]
    Vercel -->|serves| CDN

    CI --> next_dir
    next_dir --> next_static
    next_dir --> next_server

    %% Click Events for component mapping
    click app_page "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/page.jsx"
    click app_layout "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/layout.jsx"
    click header "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/components/header/page.jsx"
    click footer "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/components/footer/page.jsx"
    click startpage "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/components/startpage/page.jsx"
    click hackathon "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/hackathon/page.jsx"
    click meet "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/meet/page.jsx"
    click journalpublications "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/journalpublications/page.jsx"
    click schedule "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/schedule/page.jsx"
    click speakers "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/speakers/page.jsx"
    click contact_us "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/contact_us/page.jsx"
    click registrations_ui "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/registrations/page.jsx"
    click regi_ui "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/regi/page.jsx"
    click register_api "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/api/register/route.js"
    click registrations_api "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/api/registrations/route.js"
    click CDN "https://github.com/roshaneleshaddai/rdconclave/tree/main/public/"
    click Database "https://github.com/roshaneleshaddai/rdconclave/blob/main/."
    click tailwind_config "https://github.com/roshaneleshaddai/rdconclave/blob/main/tailwind.config.js"
    click postcss_config_js "https://github.com/roshaneleshaddai/rdconclave/blob/main/postcss.config.js"
    click postcss_config_mjs "https://github.com/roshaneleshaddai/rdconclave/blob/main/postcss.config.mjs"
    click next_config "https://github.com/roshaneleshaddai/rdconclave/blob/main/next.config.mjs"
    click jsconfig "https://github.com/roshaneleshaddai/rdconclave/blob/main/jsconfig.json"
    click globals_css "https://github.com/roshaneleshaddai/rdconclave/blob/main/app/globals.css"
    click next_dir "https://github.com/roshaneleshaddai/rdconclave/tree/main/.next/"
    click next_static "https://github.com/roshaneleshaddai/rdconclave/tree/main/.next/static/"
    click next_server "https://github.com/roshaneleshaddai/rdconclave/tree/main/.next/server/"

    %% Styles
    classDef frontend fill:#D0E8FF,stroke:#0366D6,stroke-width:1px;
    classDef backend fill:#DFFFD6,stroke:#28A745,stroke-width:1px;
    classDef external fill:#FFF4CD,stroke:#D4A017,stroke-width:1px;
    classDef infra fill:#E2E2E2,stroke:#6C757D,stroke-width:1px;
```
