# redi-school/fullstack_bootcamp architecture

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

- Interactive diagram: https://gitdiagram.com/redi-school/fullstack_bootcamp
- Repository: https://github.com/redi-school/fullstack_bootcamp

## Overview

This repository is a full-stack web-development bootcamp curriculum, represented here by its React e-commerce milestones and the later Twitter-clone milestone. The shop workflow loads a product catalog, filters it, renders product cards, and maintains cart-count state. The Twitter clone adds feed and interaction pages, API routes, authentication, and persistence; the tree shows these capabilities, but the supplied excerpts do not establish most of their runtime connections. The graph therefore marks those links as unverified rather than asserting a call sequence.

Main entry points: [`projects/01_ecommerce/03_milestone/project/src/components/Main.jsx`](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/Main.jsx) (Catalog and filtering), [`projects/02_twitter_clone/06_milestone/code/app/page.jsx`](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/page.jsx) (Feed and tweet pages), [`projects/01_ecommerce/03_milestone/project/src/App.jsx`](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/App.jsx) (Shop app state), [`projects/02_twitter_clone/06_milestone/code/components/TweetCard.jsx`](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/components/TweetCard.jsx) (Tweet and favorite controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shop["React Shop"]
  node_shop_app["Shop app state<br/>[App.jsx]"]
  node_shop_header["Header and cart count<br/>[Header.jsx]"]
  node_shop_main["Catalog and filtering<br/>[Main.jsx]"]
  node_shop_filters["Search and category filters<br/>[Filters.jsx]"]
  node_shop_card["Product card<br/>[ProductCard.jsx]"]
end

subgraph group_social_ui["Twitter Interface"]
  node_twitter_pages["Feed and tweet pages<br/>[page.jsx]"]
  node_twitter_favorites["Favorites page<br/>[page.jsx]"]
  node_twitter_detail["Tweet detail page<br/>[page.jsx]"]
  node_twitter_components["Tweet and favorite controls<br/>[TweetCard.jsx]"]
  node_twitter_context["Favorites state"]
  node_auth_page["Login page<br/>[page.jsx]"]
end

subgraph group_social_api["Twitter API"]
  node_tweets_api["Tweet collection API<br/>[route.js]"]
  node_tweet_api["Single tweet API<br/>[route.js]"]
  node_favorites_api["Favorites API<br/>[route.js]"]
  node_demo_api["Demo data API<br/>[route.js]"]
end

subgraph group_social_data["Identity and Data"]
  node_auth_api["NextAuth route<br/>[route.js]"]
  node_middleware["Request middleware<br/>[middleware.js]"]
  node_tweet_model["Tweet model<br/>[Tweet.js]"]
  node_database[("MongoDB connection<br/>[db.js]")]
end

node_shop_user(("Shop visitor"))
node_catalog_service{{"Fake Store API"}}
node_twitter_visitor(("Twitter visitor"))

node_shop_user -->|"uses"| node_shop_app
node_shop_app -->|"renders"| node_shop_header
node_shop_app -->|"renders"| node_shop_main
node_shop_main -->|"fetches products"| node_catalog_service
node_shop_main -->|"renders"| node_shop_filters
node_shop_main -->|"renders"| node_shop_card
node_twitter_visitor -.->|"uses"| node_twitter_pages
node_twitter_pages -.->|"requests feed"| node_tweets_api
node_twitter_pages -.->|"opens tweet"| node_twitter_detail
node_twitter_favorites -.->|"loads favorites"| node_favorites_api
node_twitter_detail -.->|"requests tweet"| node_tweet_api
node_twitter_pages -.->|"renders"| node_twitter_components
node_twitter_favorites -.->|"renders"| node_twitter_components
node_twitter_components -.->|"updates state"| node_twitter_context
node_twitter_visitor -.->|"signs in"| node_auth_page
node_auth_page -.->|"authenticates"| node_auth_api
node_middleware -.->|"checks session"| node_auth_api
node_tweets_api -.->|"reads or writes"| node_tweet_model
node_tweet_api -.->|"reads or writes"| node_tweet_model
node_tweet_model -.->|"persists data"| node_database
node_demo_api -.->|"loads data"| node_database

click node_shop_app "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/App.jsx"
click node_shop_header "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/02_milestone/project/src/components/Header.jsx"
click node_shop_main "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/Main.jsx"
click node_shop_filters "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/Filters.jsx"
click node_shop_card "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/ProductCard.jsx"
click node_twitter_pages "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/page.jsx"
click node_twitter_favorites "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/favorites/page.jsx"
click node_twitter_detail "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/tweet/%5Bid%5D/page.jsx"
click node_twitter_components "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/components/TweetCard.jsx"
click node_twitter_context "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/context/FavoritesContext.jsx"
click node_tweets_api "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/tweets/route.js"
click node_tweet_api "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/tweets/%5Bid%5D/route.js"
click node_favorites_api "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/favorites/route.js"
click node_demo_api "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/demo-data/route.js"
click node_auth_page "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/login/page.jsx"
click node_auth_api "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/auth/%5B...nextauth%5D/route.js"
click node_middleware "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/middleware.js"
click node_tweet_model "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/models/Tweet.js"
click node_database "https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/lib/db.js"

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_shop_app,node_shop_header,node_shop_main,node_shop_filters,node_shop_card toneBlue
class node_twitter_pages,node_twitter_favorites,node_twitter_detail,node_twitter_components,node_twitter_context,node_auth_page toneAmber
class node_tweets_api,node_tweet_api,node_favorites_api,node_demo_api,node_catalog_service toneMint
class node_auth_api,node_middleware,node_tweet_model,node_database toneRose
class node_shop_user,node_twitter_visitor toneIndigo
```

## Components

### React Shop

- [Shop app state](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/App.jsx): `projects/01_ecommerce/03_milestone/project/src/App.jsx`
- [Header and cart count](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/02_milestone/project/src/components/Header.jsx): `projects/01_ecommerce/02_milestone/project/src/components/Header.jsx`
- [Catalog and filtering](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/Main.jsx): `projects/01_ecommerce/03_milestone/project/src/components/Main.jsx`
- [Search and category filters](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/Filters.jsx): `projects/01_ecommerce/03_milestone/project/src/components/Filters.jsx`
- [Product card](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/01_ecommerce/03_milestone/project/src/components/ProductCard.jsx): `projects/01_ecommerce/03_milestone/project/src/components/ProductCard.jsx`

### Twitter Interface

- [Feed and tweet pages](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/page.jsx): `projects/02_twitter_clone/06_milestone/code/app/page.jsx`
- [Favorites page](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/favorites/page.jsx): `projects/02_twitter_clone/06_milestone/code/app/favorites/page.jsx`
- [Tweet detail page](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/tweet/%5Bid%5D/page.jsx): `projects/02_twitter_clone/06_milestone/code/app/tweet/[id]/page.jsx`
- [Tweet and favorite controls](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/components/TweetCard.jsx): `projects/02_twitter_clone/06_milestone/code/components/TweetCard.jsx`
- [Favorites state](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/context/FavoritesContext.jsx): `projects/02_twitter_clone/06_milestone/code/context/FavoritesContext.jsx`
- [Login page](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/login/page.jsx): `projects/02_twitter_clone/06_milestone/code/app/login/page.jsx`

### Twitter API

- [Tweet collection API](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/tweets/route.js): `projects/02_twitter_clone/06_milestone/code/app/api/tweets/route.js`
- [Single tweet API](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/tweets/%5Bid%5D/route.js): `projects/02_twitter_clone/06_milestone/code/app/api/tweets/[id]/route.js`
- [Favorites API](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/favorites/route.js): `projects/02_twitter_clone/06_milestone/code/app/api/favorites/route.js`
- [Demo data API](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/demo-data/route.js): `projects/02_twitter_clone/06_milestone/code/app/api/demo-data/route.js`

### Identity and Data

- [NextAuth route](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/app/api/auth/%5B...nextauth%5D/route.js): `projects/02_twitter_clone/06_milestone/code/app/api/auth/[...nextauth]/route.js`
- [Request middleware](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/middleware.js): `projects/02_twitter_clone/06_milestone/code/middleware.js`
- [Tweet model](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/models/Tweet.js): `projects/02_twitter_clone/06_milestone/code/models/Tweet.js`
- [MongoDB connection](https://github.com/redi-school/fullstack_bootcamp/blob/main/projects/02_twitter_clone/06_milestone/code/lib/db.js): `projects/02_twitter_clone/06_milestone/code/lib/db.js`

### Other components

- **Shop visitor**
- **Fake Store API**
- **Twitter visitor**

## Connections

- Shop visitor → Shop app state: uses (evidence: `projects/01_ecommerce/03_milestone/project/src/App.jsx`)
- Shop app state → Header and cart count: renders (evidence: `projects/01_ecommerce/03_milestone/project/src/App.jsx`)
- Shop app state → Catalog and filtering: renders (evidence: `projects/01_ecommerce/03_milestone/project/src/App.jsx`)
- Catalog and filtering → Fake Store API: fetches products (evidence: `projects/01_ecommerce/03_milestone/project/src/components/Main.jsx`)
- Catalog and filtering → Search and category filters: renders (evidence: `projects/01_ecommerce/03_milestone/project/src/components/Main.jsx`)
- Catalog and filtering → Product card: renders (evidence: `projects/01_ecommerce/03_milestone/project/src/components/Main.jsx`)
- Twitter visitor → Feed and tweet pages: uses
- Feed and tweet pages → Tweet collection API: requests feed
- Feed and tweet pages → Tweet detail page: opens tweet
- Favorites page → Favorites API: loads favorites
- Tweet detail page → Single tweet API: requests tweet
- Feed and tweet pages → Tweet and favorite controls: renders
- Favorites page → Tweet and favorite controls: renders
- Tweet and favorite controls → Favorites state: updates state
- Twitter visitor → Login page: signs in
- Login page → NextAuth route: authenticates
- Request middleware → NextAuth route: checks session
- Tweet collection API → Tweet model: reads or writes
- Single tweet API → Tweet model: reads or writes
- Tweet model → MongoDB connection: persists data
- Demo data API → MongoDB connection: loads data
