# anchit-iitm/jan25_bootcamp architecture

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

- Interactive diagram: https://gitdiagram.com/anchit-iitm/jan25_bootcamp
- Repository: https://github.com/anchit-iitm/jan25_bootcamp

## Overview

This repository is a sequence of Flask/Vue learning applications, culminating in a role-based product and category management app. The main user flow is navigating the Vue interface, authenticating or registering, then using protected APIs for category and product operations backed by SQLAlchemy models. The later backend also configures caching, email, and Celery jobs. The graph emphasizes the day6 implementation; earlier core files are represented where their role is identifiable. Several views and integrations are unsampled, so their connections to the API are shown only as unverified dashed links.

Main entry points: [`day6/backend/app.py`](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/app.py) (Flask API), [`day6/frontend/src/router/index.js`](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/router/index.js) (Page router), [`day6/frontend/src/main.js`](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/main.js) (Vue entry), [`day6/backend/routes.py`](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/routes.py) (REST resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_entry["Vue entry<br/>[main.js]"]
  node_shell["Navigation shell<br/>[App.vue]"]
  node_router["Page router<br/>[index.js]"]
  node_login["Login view<br/>[LoginView.vue]"]
  node_catalog["Catalog views"]
  node_dashboard["Dashboard view<br/>[dashboard.vue]"]
  node_landing["Landing views<br/>[firstpage.vue]"]
end

subgraph group_service["Application service"]
  node_api["Flask API<br/>[app.py]"]
  node_auth["Identity and roles<br/>[app.py]"]
  node_resources["REST resources<br/>[routes.py]"]
  node_entities["Domain models<br/>[models.py]"]
  node_settings["Runtime settings<br/>[config.py]"]
  node_cache["Response cache<br/>[caching.py]"]
end

subgraph group_async["Background integrations"]
  node_mail["Mail service<br/>[mailing.py]"]
  node_jobs["Celery jobs<br/>[jobs.py]"]
  node_celeryctx["Celery context<br/>[celery_context.py]"]
end

node_visitor(("User"))
node_database[("Relational database")]
node_emailprovider(("Email provider"))
node_broker["Task broker"]

node_visitor -->|"opens"| node_entry
node_entry -->|"mounts"| node_shell
node_entry -->|"loads"| node_router
node_shell -->|"renders"| node_router
node_router -->|"routes to"| node_login
node_router -.->|"routes to"| node_catalog
node_router -.->|"routes to"| node_dashboard
node_router -->|"routes to"| node_landing
node_login -.->|"submits credentials"| node_api
node_catalog -.->|"requests catalog"| node_api
node_dashboard -.->|"requests data"| node_api
node_api -->|"configures"| node_auth
node_api -->|"registers"| node_resources
node_api -->|"queries"| node_entities
node_resources -->|"reads and writes"| node_entities
node_entities -.->|"persists"| node_database
node_api -->|"loads"| node_settings
node_api -->|"initializes"| node_cache
node_resources -->|"caches reads"| node_cache
node_api -->|"initializes"| node_mail
node_api -->|"imports and schedules"| node_jobs
node_jobs -->|"uses context"| node_celeryctx
node_api -->|"sends email"| node_mail
node_mail -.->|"delivers through"| node_emailprovider
node_jobs -.->|"dispatches tasks"| node_broker

click node_entry "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/main.js"
click node_shell "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/App.vue"
click node_router "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/router/index.js"
click node_login "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/LoginView.vue"
click node_catalog "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/category_create.vue"
click node_dashboard "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/dashboard.vue"
click node_landing "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/firstpage.vue"
click node_api "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/app.py"
click node_auth "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/app.py"
click node_resources "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/routes.py"
click node_entities "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/models.py"
click node_settings "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/config.py"
click node_cache "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/caching.py"
click node_mail "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/mailing.py"
click node_jobs "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/jobs.py"
click node_celeryctx "https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/celery_context.py"

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_entry,node_shell,node_router,node_login,node_catalog,node_dashboard,node_landing,node_visitor toneBlue
class node_api,node_auth,node_resources,node_entities,node_settings,node_cache,node_database toneAmber
class node_mail,node_jobs,node_celeryctx toneMint
class node_emailprovider toneIndigo
class node_broker toneRose
```

## Components

### Web client

- [Vue entry](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/main.js): `day6/frontend/src/main.js`
- [Navigation shell](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/App.vue): `day6/frontend/src/App.vue`
- [Page router](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/router/index.js): `day6/frontend/src/router/index.js`
- [Login view](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/LoginView.vue): `day6/frontend/src/views/LoginView.vue`
- [Catalog views](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/category_create.vue): `day6/frontend/src/views/category_create.vue`
- [Dashboard view](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/dashboard.vue): `day6/frontend/src/views/dashboard.vue`
- [Landing views](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/frontend/src/views/firstpage.vue): `day6/frontend/src/views/firstpage.vue`

### Application service

- [Flask API](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/app.py): `day6/backend/app.py`
- [Identity and roles](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/app.py): `day6/backend/app.py`
- [REST resources](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/routes.py): `day6/backend/routes.py`
- [Domain models](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/models.py): `day6/backend/models.py`
- [Runtime settings](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/config.py): `day6/backend/config.py`
- [Response cache](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/caching.py): `day6/backend/caching.py`

### Background integrations

- [Mail service](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/mailing.py): `day6/backend/mailing.py`
- [Celery jobs](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/jobs.py): `day6/backend/jobs.py`
- [Celery context](https://github.com/anchit-iitm/jan25_bootcamp/blob/main/day6/backend/celery_context.py): `day6/backend/celery_context.py`

### Other components

- **User**
- **Relational database**
- **Email provider**
- **Task broker**

## Connections

- User → Vue entry: opens (evidence: `day6/frontend/src/main.js`)
- Vue entry → Navigation shell: mounts (evidence: `day6/frontend/src/main.js`)
- Vue entry → Page router: loads (evidence: `day6/frontend/src/main.js`)
- Navigation shell → Page router: renders (evidence: `day6/frontend/src/App.vue`)
- Page router → Login view: routes to (evidence: `day6/frontend/src/router/index.js`)
- Page router → Catalog views: routes to (evidence: `day6/frontend/src/router/index.js`)
- Page router → Dashboard view: routes to (evidence: `day6/frontend/src/router/index.js`)
- Page router → Landing views: routes to (evidence: `day6/frontend/src/router/index.js`)
- Login view → Flask API: submits credentials
- Catalog views → Flask API: requests catalog
- Dashboard view → Flask API: requests data
- Flask API → Identity and roles: configures (evidence: `day6/backend/app.py`)
- Flask API → REST resources: registers (evidence: `day6/backend/app.py`)
- Flask API → Domain models: queries (evidence: `day6/backend/app.py`)
- REST resources → Domain models: reads and writes (evidence: `day6/backend/routes.py`)
- Domain models → Relational database: persists
- Flask API → Runtime settings: loads (evidence: `day6/backend/app.py`)
- Flask API → Response cache: initializes (evidence: `day6/backend/app.py`)
- REST resources → Response cache: caches reads (evidence: `day6/backend/routes.py`)
- Flask API → Mail service: initializes (evidence: `day6/backend/app.py`)
- Flask API → Celery jobs: imports and schedules (evidence: `day6/backend/app.py`)
- Celery jobs → Celery context: uses context (evidence: `day6/backend/jobs.py`)
- Flask API → Mail service: sends email (evidence: `day6/backend/app.py`)
- Mail service → Email provider: delivers through
- Celery jobs → Task broker: dispatches tasks
