# debsouryadatta/100xdevs-cohort-2.0-harkiratsingh architecture

> Architecture diagram of the GitHub repository debsouryadatta/100xdevs-cohort-2.0-harkiratsingh, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh
- Repository: https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh

## Overview

##### Project type and purpose
- This is a single Git repository that serves as a learning monorepo for 100xDevs Cohort 2.0.
- At the top-level it holds:
- COHORT03 (two large sample apps built with Turborepo/PNPM workspaces)
- WEEK01…WEEK22 (weekly exercises, assignments, solutions, and resources).
- Purpose: to organize all live lectures, recorded videos, assignments, solutions, and related projects in one place.

##### File structure
- Top-level components:
- .gitignore, README.md
- WEEK01/ through WEEK22/ – each week folder contains standalone exercises or small projects with their own substructure.
- “apps/” directories hold front-end (Next.js) and back-end (Node HTTP or WS) applications.
- “packages/” directories hold shared ESLint configs, TypeScript configs, common UI components, and shared code (db, types, utils).
- pnpm-workspace.yaml and turbo.json coordinate the monorepo.
- WEEKxx folders: mostly independent Node.js or front-end mini-projects, each with its own package.json, source code, tests, assets.

##### Examining README.md
- Confirms the repo is structured by weekly progression.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Version Control Root"
        Root[".gitignore, README.md"]
    end

    Root --> COHORT03Monorepo
    Root --> Weekly

    subgraph "COHORT03 Monorepo"
        direction TB

        subgraph "Chat App"
            direction TB
            chat_pnpm["pnpm-workspace.yaml"]:::package
            chat_turbo["turbo.json"]:::package
            cw["apps/web (Next.js)"]:::frontend
            cd["apps/docs (Next.js)"]:::frontend
            cup["packages/ui"]:::package
            cts["packages/typescript-config"]:::package
            ces["packages/eslint-config"]:::package

            chat_pnpm --> cw
            chat_pnpm --> cd
            chat_turbo --> cw
            chat_turbo --> cd

            cw -->|imports| cup
            cd -->|imports| cup
            cw -->|tsconfig| cts
            cd -->|tsconfig| cts
            cw -->|eslint| ces
            cd -->|eslint| ces
        end

        subgraph "Draw App"
            direction TB
            draw_pnpm["pnpm-workspace.yaml"]:::package
            draw_turbo["turbo.json"]:::package
            dw["apps/web (Next.js)"]:::frontend
            dah["apps/http-backend"]:::backend
            dws["apps/ws-backend"]:::backend
            dbb["packages/backend-common"]:::package
            dcm["packages/common"]:::package
            dpkgdb["packages/db (Prisma)"]:::db
            dupkgui["packages/ui"]:::package
            dtes["packages/eslint-config"]:::package
            dtcs["packages/typescript-config"]:::package

            draw_pnpm --> dw
            draw_pnpm --> dah
            draw_pnpm --> dws
            draw_turbo --> dw
            draw_turbo --> dah
            draw_turbo --> dws

            dw -->|imports UI| dupkgui
            dw -->|tsconfig| dtcs
            dw -->|eslint| dtes

            dah -->|uses backend-common| dbb
            dah -->|uses db| dpkgdb
            dah -->|tsconfig| dtcs
            dah -->|eslint| dtes

            dws -->|uses common| dcm
            dws -->|uses db| dpkgdb
            dws -->|tsconfig| dtcs
            dws -->|eslint| dtes

            dbb -->|db access| dpkgdb
        end
    end

    subgraph "Weekly Exercises (WEEK01–WEEK22)"
        direction TB
        WE["WEEK01...WEEK22"]:::package
    end

    classDef frontend fill:#ADD8E6,stroke:#000
    classDef backend fill:#90EE90,stroke:#000
    classDef package fill:#D3D3D3,stroke:#000
    classDef db fill:#F0E68C,stroke:#000,shape:cylinder

    click cw "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK21/chat-app/apps/web"
    click cd "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK21/chat-app/apps/docs"
    click cup "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK21/chat-app/packages/ui"
    click cts "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK21/chat-app/packages/typescript-config"
    click ces "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK21/chat-app/packages/eslint-config"
    click chat_pnpm "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/blob/master/COHORT03/WEEK21/chat-app/pnpm-workspace.yaml"
    click chat_turbo "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/blob/master/COHORT03/WEEK21/chat-app/turbo.json"

    click dw "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/apps/web"
    click dah "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/apps/http-backend"
    click dws "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/apps/ws-backend"
    click dbb "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/backend-common"
    click dcm "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/common"
    click dpkgdb "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/db"
    click dupkgui "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/ui"
    click dtes "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/eslint-config"
    click dtcs "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/tree/master/COHORT03/WEEK22/draw-app/packages/typescript-config"
    click draw_pnpm "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/blob/master/COHORT03/WEEK22/draw-app/pnpm-workspace.yaml"
    click draw_turbo "https://github.com/debsouryadatta/100xdevs-cohort-2.0-harkiratsingh/blob/master/COHORT03/WEEK22/draw-app/turbo.json"
```
