# jatin4224/assignments architecture

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

- Interactive diagram: https://gitdiagram.com/jatin4224/assignments
- Repository: https://github.com/jatin4224/assignments

## Overview

This repository is a collection of JavaScript learning exercises and small example applications, rather than one integrated product. The main workflows are individual exercises, small HTTP servers, Express course-management examples, React hook demonstrations, and database examples. Edges are limited to relationships visible in the excerpts or SOURCE INDEX; many listed exercise files were not sampled, so their internal behavior is not inferred.

Main entry points: [`week-6/1-use-memo/src/App.jsx`](https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/App.jsx) (Memo Demo App), [`week-3/03-mongo/index.js`](https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/index.js) (Mongo App Entry), [`week-3/04-mongo-with-jwt-auth/index.js`](https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/index.js) (JWT Mongo Entry), [`week-6/2-use-callback/src/App.jsx`](https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/App.jsx) (Callback Demo App)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_js["JavaScript Exercises"]
  node_js_basics["Language Exercises"]
  node_js_challenges["JS Challenges"]
end

subgraph group_servers["Node Servers"]
  node_async["Promise Exercises"]
  node_file_server["File Server<br/>[fileServer.js]"]
  node_todo_server["Todo Server<br/>[todoServer.js]"]
end

subgraph group_express["Express Course Apps"]
  node_middleware_lessons["Middleware Examples"]
  node_jwt_example["JWT Example<br/>[index.js]"]
  node_mongo_entry["Mongo App Entry<br/>[index.js]"]
  node_mongo_admin["Admin Routes<br/>[admin.js]"]
  node_mongo_user["User Routes<br/>[user.js]"]
  node_mongo_auth["Route Middleware"]
  node_jwt_mongo_entry["JWT Mongo Entry<br/>[index.js]"]
  node_jwt_admin["JWT Admin Routes<br/>[admin.js]"]
  node_jwt_user["JWT User Routes<br/>[user.js]"]
  node_jwt_middleware["JWT Route Middleware"]
end

subgraph group_react["React Hook Demos"]
  node_memo_app["Memo Demo App<br/>[App.jsx]"]
  node_memo_a1["Memo Assignment 1<br/>[Assignment1.jsx]"]
  node_memo_a2["Memo Assignment 2<br/>[Assignment2.jsx]"]
  node_memo_a3["Memo Assignment 3<br/>[Assignment3.jsx]"]
  node_callback_app["Callback Demo App<br/>[App.jsx]"]
  node_callback_a1["Callback Assignment 1<br/>[Assignment1.jsx]"]
  node_callback_a2["Callback Assignment 2<br/>[Assignment2.jsx]"]
  node_ref_app["Ref Demo App<br/>[App.jsx]"]
  node_ref_a1["Ref Assignment 1<br/>[Assignment1.jsx]"]
  node_ref_a2["Ref Assignment 2<br/>[Assignment2.jsx]"]
end

subgraph group_data["Database Examples"]
  node_pg_setup["Postgres Schema<br/>[setup.ts]"]
  node_pg_client["Postgres Client<br/>[index.ts]"]
  node_prisma_todo["Prisma Todo Data<br/>[todo.ts]"]
end

node_learner(("Learner"))

node_learner -->|"practices"| node_js_basics
node_learner -->|"practices"| node_js_challenges
node_learner -->|"practices"| node_async
node_learner -->|"runs"| node_file_server
node_learner -->|"runs"| node_todo_server
node_learner -->|"practices"| node_middleware_lessons
node_learner -->|"practices"| node_jwt_example
node_learner -->|"uses"| node_mongo_entry
node_mongo_entry -->|"mounts"| node_mongo_admin
node_mongo_entry -->|"mounts"| node_mongo_user
node_mongo_admin -->|"imports"| node_mongo_auth
node_mongo_user -->|"imports"| node_mongo_auth
node_learner -->|"uses"| node_jwt_mongo_entry
node_jwt_mongo_entry -->|"mounts"| node_jwt_admin
node_jwt_mongo_entry -->|"mounts"| node_jwt_user
node_jwt_admin -->|"imports"| node_jwt_middleware
node_jwt_user -->|"imports"| node_jwt_middleware
node_learner -->|"uses"| node_memo_app
node_memo_app -->|"renders"| node_memo_a1
node_memo_app -->|"renders"| node_memo_a2
node_memo_app -->|"renders"| node_memo_a3
node_learner -->|"uses"| node_callback_app
node_callback_app -->|"renders"| node_callback_a1
node_callback_app -->|"renders"| node_callback_a2
node_learner -->|"uses"| node_ref_app
node_ref_app -->|"renders"| node_ref_a1
node_ref_app -->|"renders"| node_ref_a2
node_pg_setup -->|"queries"| node_pg_client
node_learner -->|"practices"| node_prisma_todo

click node_js_basics "https://github.com/jatin4224/assignments/tree/master/week-1/offline-class-1"
click node_js_challenges "https://github.com/jatin4224/assignments/tree/master/01-js"
click node_async "https://github.com/jatin4224/assignments/tree/master/week-2/01-async-js"
click node_file_server "https://github.com/jatin4224/assignments/blob/master/week-2/02-nodejs/fileServer.js"
click node_todo_server "https://github.com/jatin4224/assignments/blob/master/week-2/02-nodejs/todoServer.js"
click node_middleware_lessons "https://github.com/jatin4224/assignments/tree/master/week-3/01-middlewares"
click node_jwt_example "https://github.com/jatin4224/assignments/blob/master/week-3/02-jwt/index.js"
click node_mongo_entry "https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/index.js"
click node_mongo_admin "https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/routes/admin.js"
click node_mongo_user "https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/routes/user.js"
click node_mongo_auth "https://github.com/jatin4224/assignments/tree/master/week-3/03-mongo/middleware"
click node_jwt_mongo_entry "https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/index.js"
click node_jwt_admin "https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/routes/admin.js"
click node_jwt_user "https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/routes/user.js"
click node_jwt_middleware "https://github.com/jatin4224/assignments/tree/master/week-3/04-mongo-with-jwt-auth/middleware"
click node_memo_app "https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/App.jsx"
click node_memo_a1 "https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment1.jsx"
click node_memo_a2 "https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment2.jsx"
click node_memo_a3 "https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment3.jsx"
click node_callback_app "https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/App.jsx"
click node_callback_a1 "https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/components/Assignment1.jsx"
click node_callback_a2 "https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/components/Assignment2.jsx"
click node_ref_app "https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/App.jsx"
click node_ref_a1 "https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/components/Assignment1.jsx"
click node_ref_a2 "https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/components/Assignment2.jsx"
click node_pg_setup "https://github.com/jatin4224/assignments/blob/master/week-10/1-postgres-simple/src/db/setup.ts"
click node_pg_client "https://github.com/jatin4224/assignments/blob/master/week-10/1-postgres-simple/src/index.ts"
click node_prisma_todo "https://github.com/jatin4224/assignments/blob/master/week-10/2-prisma-simple/src/db/todo.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_js_basics,node_js_challenges toneBlue
class node_async,node_file_server,node_todo_server toneAmber
class node_middleware_lessons,node_jwt_example,node_mongo_entry,node_mongo_admin,node_mongo_user,node_mongo_auth,node_jwt_mongo_entry,node_jwt_admin,node_jwt_user,node_jwt_middleware toneMint
class node_memo_app,node_memo_a1,node_memo_a2,node_memo_a3,node_callback_app,node_callback_a1,node_callback_a2,node_ref_app,node_ref_a1,node_ref_a2 toneRose
class node_pg_setup,node_pg_client,node_prisma_todo,node_learner toneIndigo
```

## Components

### JavaScript Exercises

- [Language Exercises](https://github.com/jatin4224/assignments/tree/master/week-1/offline-class-1): `week-1/offline-class-1`
- [JS Challenges](https://github.com/jatin4224/assignments/tree/master/01-js): `01-js`

### Node Servers

- [Promise Exercises](https://github.com/jatin4224/assignments/tree/master/week-2/01-async-js): `week-2/01-async-js`
- [File Server](https://github.com/jatin4224/assignments/blob/master/week-2/02-nodejs/fileServer.js): `week-2/02-nodejs/fileServer.js`
- [Todo Server](https://github.com/jatin4224/assignments/blob/master/week-2/02-nodejs/todoServer.js): `week-2/02-nodejs/todoServer.js`

### Express Course Apps

- [Middleware Examples](https://github.com/jatin4224/assignments/tree/master/week-3/01-middlewares): `week-3/01-middlewares`
- [JWT Example](https://github.com/jatin4224/assignments/blob/master/week-3/02-jwt/index.js): `week-3/02-jwt/index.js`
- [Mongo App Entry](https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/index.js): `week-3/03-mongo/index.js`
- [Admin Routes](https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/routes/admin.js): `week-3/03-mongo/routes/admin.js`
- [User Routes](https://github.com/jatin4224/assignments/blob/master/week-3/03-mongo/routes/user.js): `week-3/03-mongo/routes/user.js`
- [Route Middleware](https://github.com/jatin4224/assignments/tree/master/week-3/03-mongo/middleware): `week-3/03-mongo/middleware`
- [JWT Mongo Entry](https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/index.js): `week-3/04-mongo-with-jwt-auth/index.js`
- [JWT Admin Routes](https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/routes/admin.js): `week-3/04-mongo-with-jwt-auth/routes/admin.js`
- [JWT User Routes](https://github.com/jatin4224/assignments/blob/master/week-3/04-mongo-with-jwt-auth/routes/user.js): `week-3/04-mongo-with-jwt-auth/routes/user.js`
- [JWT Route Middleware](https://github.com/jatin4224/assignments/tree/master/week-3/04-mongo-with-jwt-auth/middleware): `week-3/04-mongo-with-jwt-auth/middleware`

### React Hook Demos

- [Memo Demo App](https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/App.jsx): `week-6/1-use-memo/src/App.jsx`
- [Memo Assignment 1](https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment1.jsx): `week-6/1-use-memo/src/components/Assignment1.jsx`
- [Memo Assignment 2](https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment2.jsx): `week-6/1-use-memo/src/components/Assignment2.jsx`
- [Memo Assignment 3](https://github.com/jatin4224/assignments/blob/master/week-6/1-use-memo/src/components/Assignment3.jsx): `week-6/1-use-memo/src/components/Assignment3.jsx`
- [Callback Demo App](https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/App.jsx): `week-6/2-use-callback/src/App.jsx`
- [Callback Assignment 1](https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/components/Assignment1.jsx): `week-6/2-use-callback/src/components/Assignment1.jsx`
- [Callback Assignment 2](https://github.com/jatin4224/assignments/blob/master/week-6/2-use-callback/src/components/Assignment2.jsx): `week-6/2-use-callback/src/components/Assignment2.jsx`
- [Ref Demo App](https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/App.jsx): `week-6/3-use-ref/src/App.jsx`
- [Ref Assignment 1](https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/components/Assignment1.jsx): `week-6/3-use-ref/src/components/Assignment1.jsx`
- [Ref Assignment 2](https://github.com/jatin4224/assignments/blob/master/week-6/3-use-ref/src/components/Assignment2.jsx): `week-6/3-use-ref/src/components/Assignment2.jsx`

### Database Examples

- [Postgres Schema](https://github.com/jatin4224/assignments/blob/master/week-10/1-postgres-simple/src/db/setup.ts): `week-10/1-postgres-simple/src/db/setup.ts`
- [Postgres Client](https://github.com/jatin4224/assignments/blob/master/week-10/1-postgres-simple/src/index.ts): `week-10/1-postgres-simple/src/index.ts`
- [Prisma Todo Data](https://github.com/jatin4224/assignments/blob/master/week-10/2-prisma-simple/src/db/todo.ts): `week-10/2-prisma-simple/src/db/todo.ts`

### Other components

- **Learner**

## Connections

- Learner → Language Exercises: practices
- Learner → JS Challenges: practices (evidence: `01-js/package.json`)
- Learner → Promise Exercises: practices
- Learner → File Server: runs
- Learner → Todo Server: runs (evidence: `week-2/02-nodejs/todoServer.js`)
- Learner → Middleware Examples: practices
- Learner → JWT Example: practices (evidence: `week-3/02-jwt/index.js`)
- Learner → Mongo App Entry: uses (evidence: `week-3/03-mongo/index.js`)
- Mongo App Entry → Admin Routes: mounts (evidence: `week-3/03-mongo/index.js`)
- Mongo App Entry → User Routes: mounts (evidence: `week-3/03-mongo/index.js`)
- Admin Routes → Route Middleware: imports (evidence: `week-3/03-mongo/routes/admin.js`)
- User Routes → Route Middleware: imports (evidence: `week-3/03-mongo/routes/user.js`)
- Learner → JWT Mongo Entry: uses (evidence: `week-3/04-mongo-with-jwt-auth/index.js`)
- JWT Mongo Entry → JWT Admin Routes: mounts (evidence: `week-3/04-mongo-with-jwt-auth/index.js`)
- JWT Mongo Entry → JWT User Routes: mounts (evidence: `week-3/04-mongo-with-jwt-auth/index.js`)
- JWT Admin Routes → JWT Route Middleware: imports (evidence: `week-3/04-mongo-with-jwt-auth/routes/admin.js`)
- JWT User Routes → JWT Route Middleware: imports (evidence: `week-3/04-mongo-with-jwt-auth/routes/user.js`)
- Learner → Memo Demo App: uses (evidence: `week-6/1-use-memo/src/App.jsx`)
- Memo Demo App → Memo Assignment 1: renders (evidence: `week-6/1-use-memo/src/App.jsx`)
- Memo Demo App → Memo Assignment 2: renders (evidence: `week-6/1-use-memo/src/App.jsx`)
- Memo Demo App → Memo Assignment 3: renders (evidence: `week-6/1-use-memo/src/App.jsx`)
- Learner → Callback Demo App: uses (evidence: `week-6/2-use-callback/src/App.jsx`)
- Callback Demo App → Callback Assignment 1: renders (evidence: `week-6/2-use-callback/src/App.jsx`)
- Callback Demo App → Callback Assignment 2: renders (evidence: `week-6/2-use-callback/src/App.jsx`)
- Learner → Ref Demo App: uses (evidence: `week-6/3-use-ref/src/App.jsx`)
- Ref Demo App → Ref Assignment 1: renders (evidence: `week-6/3-use-ref/src/App.jsx`)
- Ref Demo App → Ref Assignment 2: renders (evidence: `week-6/3-use-ref/src/App.jsx`)
- Postgres Schema → Postgres Client: queries (evidence: `week-10/1-postgres-simple/src/db/setup.ts`)
- Learner → Prisma Todo Data: practices (evidence: `week-10/2-prisma-simple/src/db/todo.ts`)
