# rezasi/go-interview-practice architecture

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

- Interactive diagram: https://gitdiagram.com/rezasi/go-interview-practice
- Repository: https://github.com/rezasi/go-interview-practice

## Overview

Go Interview Practice is a web-based learning platform backed by a repository of Go coding challenges and package exercises. The principal user workflow is to practice challenges in the interactive UI, submit code for execution and feedback, and track progress on leaderboards. The sampled server wires services into HTTP routes; the README documents editor, results, analytics, AI mentorship, and leaderboard capabilities. Challenge and package implementations are independent exercises, not a demonstrated runtime pipeline. Several service implementations and the API handler body were not sampled, so their internal links are omitted.

Main entry points: [`web-ui/static/js/main.js`](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/static/js/main.js) (Practice UI), [`web-ui/internal/server/server.go`](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/server/server.go) (HTTP Server), [`web-ui/main.go`](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/main.go) (Application Startup), [`web-ui/internal/handlers/api.go`](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/handlers/api.go) (Platform API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Practice Platform"]
  node_webapp["Practice UI<br/>[main.js]"]
  node_server["HTTP Server<br/>[server.go]"]
  node_api["Platform API<br/>[api.go]"]
  node_appentry["Application Startup<br/>[main.go]"]
end

subgraph group_challenges["Go Challenges"]
  node_challenge9["Book API"]
  node_challenge11["Challenge 11"]
  node_challenge12["Challenge 12"]
  node_challenge14["gRPC Challenge"]
  node_oauth["OAuth 2"]
  node_challenge16["Challenge 16"]
  node_challenge30["Challenge 30"]
end

subgraph group_packages["Package Challenges"]
  node_cobra["Cobra Features"]
  node_echo["Echo Middleware"]
  node_fiber["Fiber Authentication"]
  node_gin["Gin Authentication"]
  node_gorm["GORM Generics"]
  node_mongodb["MongoDB Queries"]
end

subgraph group_internals["Challenge Patterns"]
  node_breaker["Circuit Breaker"]
  node_generics["Generic Collections"]
  node_cache["Cache Policies"]
  node_limiter["Rate Limiting"]
end

node_learner(("Learner"))

node_learner -->|"practices with"| node_webapp
node_appentry -->|"creates"| node_server
node_server -->|"registers routes"| node_api
node_webapp -->|"shows feedback"| node_learner

click node_webapp "https://github.com/rezasi/go-interview-practice/blob/main/web-ui/static/js/main.js"
click node_server "https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/server/server.go"
click node_api "https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/handlers/api.go"
click node_appentry "https://github.com/rezasi/go-interview-practice/blob/main/web-ui/main.go"
click node_challenge9 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-9/submissions/PolinaSvet/solution-template.go"
click node_challenge11 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-11/submissions/atplay90/solution-template.go"
click node_challenge12 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-12/submissions/PolinaSvet/solution-template.go"
click node_challenge14 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-14/submissions/mvsouza/solution-template.go"
click node_oauth "https://github.com/rezasi/go-interview-practice/blob/main/challenge-15/submissions/PolinaSvet/solution-template.go"
click node_challenge16 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-16/submissions/AkifhanIlgaz/solution-template.go"
click node_breaker "https://github.com/rezasi/go-interview-practice/blob/main/challenge-20/solution-template.go"
click node_generics "https://github.com/rezasi/go-interview-practice/blob/main/challenge-27/solution-template.go"
click node_cache "https://github.com/rezasi/go-interview-practice/blob/main/challenge-28/solution-template.go"
click node_limiter "https://github.com/rezasi/go-interview-practice/blob/main/challenge-29/submissions/PopovMarko/solution-template.go"
click node_challenge30 "https://github.com/rezasi/go-interview-practice/blob/main/challenge-30/submissions/imankhodadi/solution-template.go"
click node_cobra "https://github.com/rezasi/go-interview-practice/blob/main/packages/cobra/challenge-4-advanced-features/solution-template.go"
click node_echo "https://github.com/rezasi/go-interview-practice/blob/main/packages/echo/challenge-2-middleware/solution-template.go"
click node_fiber "https://github.com/rezasi/go-interview-practice/blob/main/packages/fiber/challenge-4-authentication/solution-template.go"
click node_gin "https://github.com/rezasi/go-interview-practice/blob/main/packages/gin/challenge-4-authentication/solution-template.go"
click node_gorm "https://github.com/rezasi/go-interview-practice/blob/main/packages/gorm/challenge-5-generics/solution-template.go"
click node_mongodb "https://github.com/rezasi/go-interview-practice/blob/main/packages/mongodb/challenge-2-queries-filtering/solution-template.go"

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_server,node_api,node_appentry toneBlue
class node_challenge9,node_challenge11,node_challenge12,node_challenge14,node_oauth,node_challenge16,node_challenge30 toneAmber
class node_cobra,node_echo,node_fiber,node_gin,node_gorm,node_mongodb toneMint
class node_breaker,node_generics,node_cache,node_limiter toneRose
class node_learner toneIndigo
```

## Components

### Practice Platform

- [Practice UI](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/static/js/main.js): `web-ui/static/js/main.js`
- [HTTP Server](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/server/server.go): `web-ui/internal/server/server.go`
- [Platform API](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/internal/handlers/api.go): `web-ui/internal/handlers/api.go`
- [Application Startup](https://github.com/rezasi/go-interview-practice/blob/main/web-ui/main.go): `web-ui/main.go`

### Go Challenges

- [Book API](https://github.com/rezasi/go-interview-practice/blob/main/challenge-9/submissions/PolinaSvet/solution-template.go): `challenge-9/submissions/PolinaSvet/solution-template.go`
- [Challenge 11](https://github.com/rezasi/go-interview-practice/blob/main/challenge-11/submissions/atplay90/solution-template.go): `challenge-11/submissions/atplay90/solution-template.go`
- [Challenge 12](https://github.com/rezasi/go-interview-practice/blob/main/challenge-12/submissions/PolinaSvet/solution-template.go): `challenge-12/submissions/PolinaSvet/solution-template.go`
- [gRPC Challenge](https://github.com/rezasi/go-interview-practice/blob/main/challenge-14/submissions/mvsouza/solution-template.go): `challenge-14/submissions/mvsouza/solution-template.go`
- [OAuth 2](https://github.com/rezasi/go-interview-practice/blob/main/challenge-15/submissions/PolinaSvet/solution-template.go): `challenge-15/submissions/PolinaSvet/solution-template.go`
- [Challenge 16](https://github.com/rezasi/go-interview-practice/blob/main/challenge-16/submissions/AkifhanIlgaz/solution-template.go): `challenge-16/submissions/AkifhanIlgaz/solution-template.go`
- [Challenge 30](https://github.com/rezasi/go-interview-practice/blob/main/challenge-30/submissions/imankhodadi/solution-template.go): `challenge-30/submissions/imankhodadi/solution-template.go`

### Package Challenges

- [Cobra Features](https://github.com/rezasi/go-interview-practice/blob/main/packages/cobra/challenge-4-advanced-features/solution-template.go): `packages/cobra/challenge-4-advanced-features/solution-template.go`
- [Echo Middleware](https://github.com/rezasi/go-interview-practice/blob/main/packages/echo/challenge-2-middleware/solution-template.go): `packages/echo/challenge-2-middleware/solution-template.go`
- [Fiber Authentication](https://github.com/rezasi/go-interview-practice/blob/main/packages/fiber/challenge-4-authentication/solution-template.go): `packages/fiber/challenge-4-authentication/solution-template.go`
- [Gin Authentication](https://github.com/rezasi/go-interview-practice/blob/main/packages/gin/challenge-4-authentication/solution-template.go): `packages/gin/challenge-4-authentication/solution-template.go`
- [GORM Generics](https://github.com/rezasi/go-interview-practice/blob/main/packages/gorm/challenge-5-generics/solution-template.go): `packages/gorm/challenge-5-generics/solution-template.go`
- [MongoDB Queries](https://github.com/rezasi/go-interview-practice/blob/main/packages/mongodb/challenge-2-queries-filtering/solution-template.go): `packages/mongodb/challenge-2-queries-filtering/solution-template.go`

### Challenge Patterns

- [Circuit Breaker](https://github.com/rezasi/go-interview-practice/blob/main/challenge-20/solution-template.go): `challenge-20/solution-template.go`
- [Generic Collections](https://github.com/rezasi/go-interview-practice/blob/main/challenge-27/solution-template.go): `challenge-27/solution-template.go`
- [Cache Policies](https://github.com/rezasi/go-interview-practice/blob/main/challenge-28/solution-template.go): `challenge-28/solution-template.go`
- [Rate Limiting](https://github.com/rezasi/go-interview-practice/blob/main/challenge-29/submissions/PopovMarko/solution-template.go): `challenge-29/submissions/PopovMarko/solution-template.go`

### Other components

- **Learner**

## Connections

- Learner → Practice UI: practices with (evidence: `README.md`)
- Application Startup → HTTP Server: creates (evidence: `web-ui/main.go`)
- HTTP Server → Platform API: registers routes (evidence: `web-ui/internal/server/server.go`)
- Practice UI → Learner: shows feedback (evidence: `README.md`)
