# it-yeti8/andos_reviews architecture

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

- Interactive diagram: https://gitdiagram.com/it-yeti8/andos_reviews
- Repository: https://github.com/it-yeti8/andos_reviews

## Overview

Andos Reviews is a hybrid anime-review project: visitors receive a static website, while a serverless API supports review operations and anime lookup. The documented cloud design adds static hosting/CDN, persistent storage, and event-based tracking; the tree also contains a small Flask welcome-page experiment. Lambda excerpts show direct calls to DynamoDB, EventBridge, and Jikan. API Gateway routing and most infrastructure are documented but not represented in sampled source, so those links rely on the README; deployment automation is omitted.

Main entry points: [`LambdaFuctions/GET/app.py`](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/GET/app.py) (Anime lookup), [`LambdaFuctions/POST/app.py`](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/POST/app.py) (Create review), [`LambdaFuctions/UPDATE/app.py`](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/UPDATE/app.py) (Update review), [`LambdaFuctions/DELETE/app.py`](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/DELETE/app.py) (Soft delete)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website Delivery"]
  node_static_site["Review website<br/>[index.html]"]
  node_login_page["Login page<br/>[login.html]"]
end

subgraph group_api["Review API"]
  node_get_reviews["Anime lookup<br/>[app.py]"]
  node_create_review["Create review<br/>[app.py]"]
  node_update_review["Update review<br/>[app.py]"]
  node_delete_review["Soft delete<br/>[app.py]"]
end

subgraph group_cloud["Cloud Services"]
  node_cloudfront["CloudFront"]
  node_s3[("Amazon S3")]
  node_api_gateway["API Gateway"]
  node_jikan["Jikan API"]
  node_dynamodb[("Reviews table")]
  node_eventbridge["EventBridge"]
  node_cloudwatch["CloudWatch"]
end

subgraph group_legacy["Server Experiment"]
  node_flask_app["Flask welcome app<br/>[app.py]"]
  node_rocky_server["Rocky / Nginx host"]
end

node_visitor(("Site visitor"))

node_visitor -->|"requests site"| node_cloudfront
node_cloudfront -->|"delivers site"| node_s3
node_s3 -->|"hosts files"| node_static_site
node_s3 -->|"hosts files"| node_login_page
node_api_gateway -->|"routes requests"| node_get_reviews
node_api_gateway -->|"routes requests"| node_create_review
node_api_gateway -->|"routes requests"| node_update_review
node_api_gateway -->|"routes requests"| node_delete_review
node_get_reviews -->|"queries anime"| node_jikan
node_create_review -->|"writes review"| node_dynamodb
node_update_review -->|"updates review"| node_dynamodb
node_delete_review -->|"marks deleted"| node_dynamodb
node_get_reviews -->|"publishes action"| node_eventbridge
node_create_review -->|"publishes action"| node_eventbridge
node_update_review -->|"publishes action"| node_eventbridge
node_eventbridge -.->|"supports monitoring"| node_cloudwatch
node_flask_app -.->|"runs on"| node_rocky_server

click node_static_site "https://github.com/it-yeti8/andos_reviews/blob/main/static-website/index.html"
click node_login_page "https://github.com/it-yeti8/andos_reviews/blob/main/static-website/login.html"
click node_get_reviews "https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/GET/app.py"
click node_create_review "https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/POST/app.py"
click node_update_review "https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/UPDATE/app.py"
click node_delete_review "https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/DELETE/app.py"
click node_flask_app "https://github.com/it-yeti8/andos_reviews/blob/main/Flask-Nginx-Linx(Rocky)/app.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_static_site,node_login_page toneBlue
class node_get_reviews,node_create_review,node_update_review,node_delete_review toneAmber
class node_cloudfront,node_s3,node_api_gateway,node_jikan,node_dynamodb,node_eventbridge,node_cloudwatch toneMint
class node_flask_app,node_rocky_server toneRose
class node_visitor toneIndigo
```

## Components

### Website Delivery

- [Review website](https://github.com/it-yeti8/andos_reviews/blob/main/static-website/index.html): `static-website/index.html`
- [Login page](https://github.com/it-yeti8/andos_reviews/blob/main/static-website/login.html): `static-website/login.html`

### Review API

- [Anime lookup](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/GET/app.py): `LambdaFuctions/GET/app.py`
- [Create review](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/POST/app.py): `LambdaFuctions/POST/app.py`
- [Update review](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/UPDATE/app.py): `LambdaFuctions/UPDATE/app.py`
- [Soft delete](https://github.com/it-yeti8/andos_reviews/blob/main/LambdaFuctions/DELETE/app.py): `LambdaFuctions/DELETE/app.py`

### Cloud Services

- **CloudFront**
- **Amazon S3**
- **API Gateway**
- **Jikan API**
- **Reviews table**
- **EventBridge**
- **CloudWatch**

### Server Experiment

- [Flask welcome app](https://github.com/it-yeti8/andos_reviews/blob/main/Flask-Nginx-Linx(Rocky)/app.py): `Flask-Nginx-Linx(Rocky)/app.py`
- **Rocky / Nginx host**

### Other components

- **Site visitor**

## Connections

- Site visitor → CloudFront: requests site (evidence: `README.md`)
- CloudFront → Amazon S3: delivers site (evidence: `README.md`)
- Amazon S3 → Review website: hosts files (evidence: `README.md`)
- Amazon S3 → Login page: hosts files (evidence: `README.md`)
- API Gateway → Anime lookup: routes requests (evidence: `README.md`)
- API Gateway → Create review: routes requests (evidence: `README.md`)
- API Gateway → Update review: routes requests (evidence: `README.md`)
- API Gateway → Soft delete: routes requests (evidence: `README.md`)
- Anime lookup → Jikan API: queries anime (evidence: `LambdaFuctions/GET/app.py`)
- Create review → Reviews table: writes review (evidence: `LambdaFuctions/POST/app.py`)
- Update review → Reviews table: updates review (evidence: `LambdaFuctions/UPDATE/app.py`)
- Soft delete → Reviews table: marks deleted (evidence: `LambdaFuctions/DELETE/app.py`)
- Anime lookup → EventBridge: publishes action (evidence: `LambdaFuctions/GET/app.py`)
- Create review → EventBridge: publishes action (evidence: `LambdaFuctions/POST/app.py`)
- Update review → EventBridge: publishes action (evidence: `LambdaFuctions/UPDATE/app.py`)
- EventBridge → CloudWatch: supports monitoring
- Flask welcome app → Rocky / Nginx host: runs on
