# codebyartem/english-front architecture

> Architecture diagram of the GitHub repository codebyartem/english-front, 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/codebyartem/english-front
- Repository: https://github.com/codebyartem/english-front

## Overview

This is a browser-facing English-learning application: users register or sign in, browse textbook lessons, complete interactive exercises and submit answers; students can submit assignments, while tutors review and grade submissions. The route pages own these workflows and use a shared Axios client to communicate with an external backend. The map includes the principal lesson, assignment, and tutor-review stages; several route implementations are unsampled, so their internal behavior and links are omitted where not evidenced.

Main entry points: [`src/lib/api.ts`](https://github.com/codebyartem/english-front/blob/main/src/lib/api.ts) (HTTP client), [`src/app/lessons/[id]/page.tsx`](https://github.com/codebyartem/english-front/blob/main/src/app/lessons/%5Bid%5D/page.tsx) (Lesson page), [`src/app/dashboard/page.tsx`](https://github.com/codebyartem/english-front/blob/main/src/app/dashboard/page.tsx) (Learning dashboard), [`src/app/assignments/page.tsx`](https://github.com/codebyartem/english-front/blob/main/src/app/assignments/page.tsx) (Assignment list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts and navigation"]
  node_home["Home and catalog<br/>[page.tsx]"]
  node_registration["Registration<br/>[page.tsx]"]
  node_login["Sign in<br/>[page.tsx]"]
  node_dashboard["Learning dashboard<br/>[page.tsx]"]
end

subgraph group_learning["Learning content"]
  node_lesson["Lesson page<br/>[page.tsx]"]
  node_lessoncontent["Interactive exercises<br/>[LessonContent.tsx]"]
  node_audio["Lesson audio"]
end

subgraph group_assessment["Assignments and review"]
  node_assignments["Assignment list<br/>[page.tsx]"]
  node_assignmentdetail["Assignment submission<br/>[page.tsx]"]
  node_grading["Assignment grading<br/>[page.tsx]"]
  node_teacherdashboard["Tutor dashboard<br/>[page.tsx]"]
  node_submissiondetail["Lesson review<br/>[page.tsx]"]
end

subgraph group_client["API access"]
  node_api["HTTP client<br/>[api.ts]"]
end

node_learner(("Learner or tutor"))
node_backend[("Application backend")]

node_learner -->|"visits"| node_home
node_home -->|"requests"| node_api
node_learner -->|"signs up"| node_registration
node_registration -->|"registers"| node_api
node_learner -->|"signs in"| node_login
node_login -->|"authenticates"| node_api
node_learner -->|"opens"| node_dashboard
node_dashboard -->|"loads profile"| node_api
node_dashboard -->|"opens lesson"| node_lesson
node_learner -->|"studies"| node_lesson
node_lesson -->|"loads and submits"| node_api
node_lesson -->|"renders"| node_lessoncontent
node_lesson -->|"plays"| node_audio
node_learner -->|"views"| node_assignments
node_assignments -->|"loads assignments"| node_api
node_assignments -->|"opens assignment"| node_assignmentdetail
node_learner -->|"submits work"| node_assignmentdetail
node_assignmentdetail -->|"loads and submits"| node_api
node_learner -->|"opens tutor area"| node_teacherdashboard
node_teacherdashboard -->|"requests data"| node_api
node_learner -->|"grades work"| node_grading
node_grading -->|"loads and grades"| node_api
node_learner -->|"reviews lesson"| node_submissiondetail
node_submissiondetail -->|"loads and saves review"| node_api
node_api -->|"HTTP requests"| node_backend
node_backend -->|"HTTP responses"| node_api

click node_home "https://github.com/codebyartem/english-front/blob/main/src/app/page.tsx"
click node_registration "https://github.com/codebyartem/english-front/blob/main/src/app/register/page.tsx"
click node_login "https://github.com/codebyartem/english-front/blob/main/src/app/login/page.tsx"
click node_dashboard "https://github.com/codebyartem/english-front/blob/main/src/app/dashboard/page.tsx"
click node_lesson "https://github.com/codebyartem/english-front/blob/main/src/app/lessons/%5Bid%5D/page.tsx"
click node_lessoncontent "https://github.com/codebyartem/english-front/blob/main/src/components/LessonContent.tsx"
click node_audio "https://github.com/codebyartem/english-front/tree/main/public/audio"
click node_assignments "https://github.com/codebyartem/english-front/blob/main/src/app/assignments/page.tsx"
click node_assignmentdetail "https://github.com/codebyartem/english-front/blob/main/src/app/assignments/%5Bid%5D/page.tsx"
click node_grading "https://github.com/codebyartem/english-front/blob/main/src/app/assignments/grading/page.tsx"
click node_teacherdashboard "https://github.com/codebyartem/english-front/blob/main/src/app/teacher/dashboard/page.tsx"
click node_submissiondetail "https://github.com/codebyartem/english-front/blob/main/src/app/submissions/%5Bid%5D/page.tsx"
click node_api "https://github.com/codebyartem/english-front/blob/main/src/lib/api.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_home,node_registration,node_login,node_dashboard toneBlue
class node_lesson,node_lessoncontent,node_audio,node_backend toneAmber
class node_assignments,node_assignmentdetail,node_grading,node_teacherdashboard,node_submissiondetail toneMint
class node_api toneRose
class node_learner toneIndigo
```

## Components

### Accounts and navigation

- [Home and catalog](https://github.com/codebyartem/english-front/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Registration](https://github.com/codebyartem/english-front/blob/main/src/app/register/page.tsx): `src/app/register/page.tsx`
- [Sign in](https://github.com/codebyartem/english-front/blob/main/src/app/login/page.tsx): `src/app/login/page.tsx`
- [Learning dashboard](https://github.com/codebyartem/english-front/blob/main/src/app/dashboard/page.tsx): `src/app/dashboard/page.tsx`

### Learning content

- [Lesson page](https://github.com/codebyartem/english-front/blob/main/src/app/lessons/%5Bid%5D/page.tsx): `src/app/lessons/[id]/page.tsx`
- [Interactive exercises](https://github.com/codebyartem/english-front/blob/main/src/components/LessonContent.tsx): `src/components/LessonContent.tsx`
- [Lesson audio](https://github.com/codebyartem/english-front/tree/main/public/audio): `public/audio`

### Assignments and review

- [Assignment list](https://github.com/codebyartem/english-front/blob/main/src/app/assignments/page.tsx): `src/app/assignments/page.tsx`
- [Assignment submission](https://github.com/codebyartem/english-front/blob/main/src/app/assignments/%5Bid%5D/page.tsx): `src/app/assignments/[id]/page.tsx`
- [Assignment grading](https://github.com/codebyartem/english-front/blob/main/src/app/assignments/grading/page.tsx): `src/app/assignments/grading/page.tsx`
- [Tutor dashboard](https://github.com/codebyartem/english-front/blob/main/src/app/teacher/dashboard/page.tsx): `src/app/teacher/dashboard/page.tsx`
- [Lesson review](https://github.com/codebyartem/english-front/blob/main/src/app/submissions/%5Bid%5D/page.tsx): `src/app/submissions/[id]/page.tsx`

### API access

- [HTTP client](https://github.com/codebyartem/english-front/blob/main/src/lib/api.ts): `src/lib/api.ts`

### Other components

- **Learner or tutor**
- **Application backend**

## Connections

- Learner or tutor → Home and catalog: visits (evidence: `src/app/page.tsx`)
- Home and catalog → HTTP client: requests (evidence: `src/app/page.tsx`)
- Learner or tutor → Registration: signs up (evidence: `src/app/register/page.tsx`)
- Registration → HTTP client: registers (evidence: `src/app/register/page.tsx`)
- Learner or tutor → Sign in: signs in (evidence: `src/app/login/page.tsx`)
- Sign in → HTTP client: authenticates (evidence: `src/app/login/page.tsx`)
- Learner or tutor → Learning dashboard: opens (evidence: `src/app/dashboard/page.tsx`)
- Learning dashboard → HTTP client: loads profile (evidence: `src/app/dashboard/page.tsx`)
- Learning dashboard → Lesson page: opens lesson (evidence: `src/app/dashboard/page.tsx`)
- Learner or tutor → Lesson page: studies (evidence: `src/app/lessons/[id]/page.tsx`)
- Lesson page → HTTP client: loads and submits (evidence: `src/app/lessons/[id]/page.tsx`)
- Lesson page → Interactive exercises: renders (evidence: `src/app/lessons/[id]/page.tsx`)
- Lesson page → Lesson audio: plays (evidence: `src/app/lessons/[id]/page.tsx`)
- Learner or tutor → Assignment list: views (evidence: `src/app/assignments/page.tsx`)
- Assignment list → HTTP client: loads assignments (evidence: `src/app/assignments/page.tsx`)
- Assignment list → Assignment submission: opens assignment (evidence: `src/app/assignments/page.tsx`)
- Learner or tutor → Assignment submission: submits work (evidence: `src/app/assignments/[id]/page.tsx`)
- Assignment submission → HTTP client: loads and submits (evidence: `src/app/assignments/[id]/page.tsx`)
- Learner or tutor → Tutor dashboard: opens tutor area
- Tutor dashboard → HTTP client: requests data (evidence: `src/app/teacher/dashboard/page.tsx`)
- Learner or tutor → Assignment grading: grades work (evidence: `src/app/assignments/grading/page.tsx`)
- Assignment grading → HTTP client: loads and grades (evidence: `src/app/assignments/grading/page.tsx`)
- Learner or tutor → Lesson review: reviews lesson (evidence: `src/app/submissions/[id]/page.tsx`)
- Lesson review → HTTP client: loads and saves review (evidence: `src/app/submissions/[id]/page.tsx`)
- HTTP client → Application backend: HTTP requests (evidence: `src/lib/api.ts`)
- Application backend → HTTP client: HTTP responses (evidence: `src/lib/api.ts`)
