# lrnolsz/jes.co architecture

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

- Interactive diagram: https://gitdiagram.com/lrnolsz/jes.co
- Repository: https://github.com/lrnolsz/jes.co

## Overview

JES.CO / Jesres Glam Studio combines a public React storefront and studio experience with Django APIs for bookings, courses, shopping, and paid skin consultations. The typical client journey starts in the web app, reaches a domain API for information or a transaction, and receives a result such as course access, an order status, or a consultation. The README documents several integrations and flows; unsampled implementations are represented at subsystem level, and their unverified connections are dashed.

Main entry points: [`frontend/src/App.jsx`](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/App.jsx) (React app), [`courses/views.py`](https://github.com/lrnolsz/jes.co/blob/master/courses/views.py) (Course API and access), [`products/views.py`](https://github.com/lrnolsz/jes.co/blob/master/products/views.py) (Product and order API), [`jesrestudio_backend/email_backends.py`](https://github.com/lrnolsz/jes.co/blob/master/jesrestudio_backend/email_backends.py) (Branded email)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["React app<br/>[App.jsx]"]
  node_cart["Cart and checkout<br/>[CartPage.jsx]"]
  node_ordertrack["Order tracking"]
  node_sitehome["Brand storefront<br/>[JescoHomePage.jsx]"]
end

subgraph group_studio["Studio and content"]
  node_studiohome["Studio experience<br/>[BookingSection.jsx]"]
  node_gallery["Portfolio gallery<br/>[views.py]"]
  node_testimonials["Testimonials"]
  node_booking["Booking requests<br/>[BookingSection.jsx]"]
end

subgraph group_commerce["Commerce and consultation"]
  node_shop["Product and order API<br/>[views.py]"]
  node_productmodel[("Product and order data<br/>[models.py]")]
  node_skin["Skin analysis<br/>[views.py]"]
  node_paystack["Paystack"]
end

subgraph group_learning["Course platform"]
  node_coursesbrowse["Course discovery<br/>[CoursesPage.jsx]"]
  node_coursedetail["Course detail"]
  node_courseaccess["Student access"]
  node_coursesapi["Course API and access<br/>[views.py]"]
  node_coursemodel[("Course and session state<br/>[models.py]")]
  node_bunny["Bunny Stream"]
end

subgraph group_platform["Shared platform"]
  node_accounts["Magic-link auth<br/>[views.py]"]
  node_coreapi["Shared site API<br/>[views.py]"]
  node_coredata[("Site content data<br/>[models.py]")]
  node_email["Branded email<br/>[email_backends.py]"]
  node_brevo["Brevo"]
  node_postgres[("PostgreSQL")]
  node_rate["Exchange-rate service"]
end

node_client(("Client"))

node_client -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_sitehome
node_webapp -->|"routes to"| node_studiohome
node_webapp -->|"routes to"| node_coursesbrowse
node_webapp -->|"routes to"| node_coursedetail
node_webapp -->|"routes to"| node_courseaccess
node_webapp -->|"routes to"| node_cart
node_webapp -->|"routes to"| node_ordertrack
node_webapp -->|"routes to"| node_gallery
node_webapp -->|"routes to"| node_testimonials
node_client -.->|"submits request"| node_booking
node_client -.->|"starts consultation"| node_skin
node_client -.->|"places order"| node_shop
node_client -.->|"requests access"| node_coursesapi
node_coursesapi -->|"checks access"| node_coursemodel
node_coursesapi -->|"issues signed URLs"| node_bunny
node_shop -->|"validates and records"| node_productmodel
node_shop -.->|"verifies payment"| node_paystack
node_skin -.->|"charges consultation"| node_paystack
node_coreapi -->|"reads content"| node_coredata
node_coursesapi -->|"sends notifications"| node_email
node_shop -->|"sends order email"| node_email
node_skin -->|"sends notifications"| node_email
node_email -->|"sends via API"| node_brevo
node_coursesapi -.->|"uses magic-link auth"| node_accounts
node_coursemodel -.->|"persists state"| node_postgres
node_productmodel -.->|"persists catalog and orders"| node_postgres
node_client -.->|"requests shared content"| node_coreapi
node_client -.->|"gets price estimate"| node_rate

click node_webapp "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/App.jsx"
click node_cart "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CartPage.jsx"
click node_ordertrack "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/OrderTrackingPage.jsx"
click node_sitehome "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/JescoHomePage.jsx"
click node_studiohome "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/components/BookingSection.jsx"
click node_gallery "https://github.com/lrnolsz/jes.co/blob/master/gallery/views.py"
click node_testimonials "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/TestimonialsPage.jsx"
click node_booking "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/components/BookingSection.jsx"
click node_coursesbrowse "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CoursesPage.jsx"
click node_coursedetail "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CourseDetailPage.jsx"
click node_courseaccess "https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CourseAccessPage.jsx"
click node_coursesapi "https://github.com/lrnolsz/jes.co/blob/master/courses/views.py"
click node_coursemodel "https://github.com/lrnolsz/jes.co/blob/master/courses/models.py"
click node_shop "https://github.com/lrnolsz/jes.co/blob/master/products/views.py"
click node_productmodel "https://github.com/lrnolsz/jes.co/blob/master/products/models.py"
click node_skin "https://github.com/lrnolsz/jes.co/blob/master/skin_analysis/views.py"
click node_accounts "https://github.com/lrnolsz/jes.co/blob/master/accounts/views.py"
click node_coreapi "https://github.com/lrnolsz/jes.co/blob/master/core/views.py"
click node_coredata "https://github.com/lrnolsz/jes.co/blob/master/core/models.py"
click node_email "https://github.com/lrnolsz/jes.co/blob/master/jesrestudio_backend/email_backends.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_webapp,node_cart,node_ordertrack,node_sitehome,node_client toneBlue
class node_studiohome,node_gallery,node_testimonials,node_booking toneAmber
class node_shop,node_productmodel,node_skin,node_paystack toneMint
class node_coursesbrowse,node_coursedetail,node_courseaccess,node_coursesapi,node_coursemodel,node_bunny toneRose
class node_accounts,node_coreapi,node_coredata,node_email,node_brevo,node_postgres,node_rate toneIndigo
```

## Components

### Web experience

- [React app](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Cart and checkout](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CartPage.jsx): `frontend/src/pages/CartPage.jsx`
- [Order tracking](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/OrderTrackingPage.jsx): `frontend/src/pages/OrderTrackingPage.jsx`
- [Brand storefront](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/JescoHomePage.jsx): `frontend/src/pages/JescoHomePage.jsx`

### Studio and content

- [Studio experience](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/components/BookingSection.jsx): `frontend/src/components/BookingSection.jsx`
- [Portfolio gallery](https://github.com/lrnolsz/jes.co/blob/master/gallery/views.py): `gallery/views.py`
- [Testimonials](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/TestimonialsPage.jsx): `frontend/src/pages/TestimonialsPage.jsx`
- [Booking requests](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/components/BookingSection.jsx): `frontend/src/components/BookingSection.jsx`

### Commerce and consultation

- [Product and order API](https://github.com/lrnolsz/jes.co/blob/master/products/views.py): `products/views.py`
- [Product and order data](https://github.com/lrnolsz/jes.co/blob/master/products/models.py): `products/models.py`
- [Skin analysis](https://github.com/lrnolsz/jes.co/blob/master/skin_analysis/views.py): `skin_analysis/views.py`
- **Paystack**

### Course platform

- [Course discovery](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CoursesPage.jsx): `frontend/src/pages/CoursesPage.jsx`
- [Course detail](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CourseDetailPage.jsx): `frontend/src/pages/CourseDetailPage.jsx`
- [Student access](https://github.com/lrnolsz/jes.co/blob/master/frontend/src/pages/CourseAccessPage.jsx): `frontend/src/pages/CourseAccessPage.jsx`
- [Course API and access](https://github.com/lrnolsz/jes.co/blob/master/courses/views.py): `courses/views.py`
- [Course and session state](https://github.com/lrnolsz/jes.co/blob/master/courses/models.py): `courses/models.py`
- **Bunny Stream**

### Shared platform

- [Magic-link auth](https://github.com/lrnolsz/jes.co/blob/master/accounts/views.py): `accounts/views.py`
- [Shared site API](https://github.com/lrnolsz/jes.co/blob/master/core/views.py): `core/views.py`
- [Site content data](https://github.com/lrnolsz/jes.co/blob/master/core/models.py): `core/models.py`
- [Branded email](https://github.com/lrnolsz/jes.co/blob/master/jesrestudio_backend/email_backends.py): `jesrestudio_backend/email_backends.py`
- **Brevo**
- **PostgreSQL**
- **Exchange-rate service**

### Other components

- **Client**

## Connections

- Client → React app: uses (evidence: `frontend/src/App.jsx`)
- React app → Brand storefront: routes to (evidence: `frontend/src/App.jsx`)
- React app → Studio experience: routes to (evidence: `frontend/src/App.jsx`)
- React app → Course discovery: routes to (evidence: `frontend/src/App.jsx`)
- React app → Course detail: routes to (evidence: `frontend/src/App.jsx`)
- React app → Student access: routes to (evidence: `frontend/src/App.jsx`)
- React app → Cart and checkout: routes to (evidence: `frontend/src/App.jsx`)
- React app → Order tracking: routes to (evidence: `frontend/src/App.jsx`)
- React app → Portfolio gallery: routes to (evidence: `frontend/src/App.jsx`)
- React app → Testimonials: routes to (evidence: `frontend/src/App.jsx`)
- Client → Booking requests: submits request (evidence: `README.md`)
- Client → Skin analysis: starts consultation (evidence: `README.md`)
- Client → Product and order API: places order (evidence: `README.md`)
- Client → Course API and access: requests access (evidence: `README.md`)
- Course API and access → Course and session state: checks access (evidence: `courses/views.py`)
- Course API and access → Bunny Stream: issues signed URLs
- Product and order API → Product and order data: validates and records (evidence: `products/views.py`)
- Product and order API → Paystack: verifies payment (evidence: `README.md`)
- Skin analysis → Paystack: charges consultation (evidence: `README.md`)
- Shared site API → Site content data: reads content (evidence: `core/views.py`)
- Course API and access → Branded email: sends notifications (evidence: `courses/views.py`)
- Product and order API → Branded email: sends order email (evidence: `products/views.py`)
- Skin analysis → Branded email: sends notifications (evidence: `skin_analysis/views.py`)
- Branded email → Brevo: sends via API (evidence: `jesrestudio_backend/email_backends.py`)
- Course API and access → Magic-link auth: uses magic-link auth (evidence: `README.md`)
- Course and session state → PostgreSQL: persists state (evidence: `README.md`)
- Product and order data → PostgreSQL: persists catalog and orders (evidence: `README.md`)
- Client → Shared site API: requests shared content (evidence: `README.md`)
- Client → Exchange-rate service: gets price estimate (evidence: `README.md`)
