# learn-with-sumit/rnext architecture

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

- Interactive diagram: https://gitdiagram.com/learn-with-sumit/rnext
- Repository: https://github.com/learn-with-sumit/rnext

## Overview

##### Project type and purpose
- This is not a running “product” or microservice-based system, but an open-source, GitHub-hosted course repository.
- Its sole purpose is to deliver React + Next.js sample code organized by lesson in separate Git branches. Students clone the repo, switch branches, and run each lesson’s code locally.

##### File structure
- Top-level: a single README.md.
- The real “structure” lives in Git branches named “1.1”, “1.2”, … through “12.25”. Each branch holds the source code for one lesson.
- No build or CI scripts stored at root—each branch contains its own package.json, Next.js/React source, Tailwind config, etc.
- Deployment instructions point to Vercel for hosting, GitHub for source, and YouTube/LearnwithSumit for video content.

##### README for additional insights
- Sections: How to run (clone, checkout branch, follow branch-specific README).
- A 12-module curriculum covering React fundamentals through a full Next.js/Prisma/EduConnect project.
- External integrations: GitHub (source), Vercel (optional deploy), YouTube/Facebook/LinkedIn/Instagram for community and video lessons.

##### Details
- Branch-per-lesson structure by visually grouping or listing branch names.
- Iterative flow: student checks out a branch, implements or explores, then optionally pushes changes or deploys.
- Optional Vercel auto-deploy hook to illustrate how production hosting ties back to the same GitHub repo.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Developer Workstation"
        direction TB
        GitClient["Git Client (CLI/GUI)"]:::devtools
        NodeEnv["Node.js + npm/yarn"]:::devtools
        CodeEditor["Code Editor (VS Code)"]:::devtools
        Browser["Browser (local preview)"]:::devtools
        LocalDev["Local Next.js Dev Server"]:::devtools
    end

    GitClient -->|"git clone"| GitHubRepo
    GitClient -->|"git checkout 1.x"| LocalDev
    NodeEnv -->|"npm install && npm run dev"| LocalDev
    LocalDev -->|"HTTP"| Browser
    GitClient -->|"push updates"| GitHubRepo

    GitHubRepo["GitHub Repository (branches 1.1…12.25)"]:::repo
    GitHubRepo -->|"on push auto-deploy"| Vercel
    Browser -->|"calls endpoint"| Vercel

    GitHubRepo -->|"links to video lessons"| VideoLessons

    subgraph "External Services"
        direction TB
        Vercel["Vercel (optional deploy)"]:::external
        VideoLessons["YouTube & LearnwithSumit"]:::external
    end

    click GitHubRepo "https://github.com/learn-with-sumit/rnext/blob/main/README.md"

    classDef devtools fill:#cfe2f3,stroke:#0366d6,stroke-width:1px
    classDef repo fill:#d4edda,stroke:#155724,stroke-width:1px
    classDef external fill:#fff3cd,stroke:#856404,stroke-width:1px
```
