# sumanmanyam1/basic-crud-website architecture

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

- Interactive diagram: https://gitdiagram.com/sumanmanyam1/basic-crud-website
- Repository: https://github.com/sumanmanyam1/basic-crud-website

## Overview

This is a small serverless contacts CRUD backend: an HTTP event enters the Lambda handler, which dispatches create, read, update, or delete work against DynamoDB and returns JSON responses. The sampled Python source explicitly shows these calls and the table operations. The README provides no additional capability or frontend details, and deployment wiring is not established by the excerpts, so the initiating caller is shown as unverified.

Main entry points: [`myhw.py`](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py) (Event handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_backend["Lambda backend"]
  node_handler["Event handler<br/>[myhw.py]"]
  node_create["Create contact<br/>[myhw.py]"]
  node_read["Read contacts<br/>[myhw.py]"]
  node_update["Update contact<br/>[myhw.py]"]
  node_delete["Delete contact<br/>[myhw.py]"]
  node_response["JSON response<br/>[myhw.py]"]
end

subgraph group_storage["Persistence"]
  node_dynamodb[("DynamoDB table")]
end

node_caller(("HTTP caller"))

node_caller -.->|"submits event"| node_handler
node_handler -->|"dispatches POST"| node_create
node_handler -->|"dispatches GET"| node_read
node_handler -->|"dispatches PUT"| node_update
node_handler -->|"dispatches DELETE"| node_delete
node_handler -->|"formats response"| node_response
node_create -->|"writes item"| node_dynamodb
node_read -->|"reads items"| node_dynamodb
node_update -->|"updates item"| node_dynamodb
node_delete -->|"deletes item"| node_dynamodb
node_create -->|"formats response"| node_response
node_read -->|"formats response"| node_response
node_update -->|"formats response"| node_response
node_delete -->|"formats response"| node_response

click node_handler "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py"
click node_create "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py"
click node_read "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py"
click node_update "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py"
click node_delete "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py"
click node_response "https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.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_handler,node_create,node_read,node_update,node_delete,node_response toneBlue
class node_dynamodb toneAmber
class node_caller toneIndigo
```

## Components

### Lambda backend

- [Event handler](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`
- [Create contact](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`
- [Read contacts](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`
- [Update contact](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`
- [Delete contact](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`
- [JSON response](https://github.com/sumanmanyam1/basic-crud-website/blob/main/myhw.py): `myhw.py`

### Persistence

- **DynamoDB table**

### Other components

- **HTTP caller**

## Connections

- HTTP caller → Event handler: submits event
- Event handler → Create contact: dispatches POST (evidence: `myhw.py`)
- Event handler → Read contacts: dispatches GET (evidence: `myhw.py`)
- Event handler → Update contact: dispatches PUT (evidence: `myhw.py`)
- Event handler → Delete contact: dispatches DELETE (evidence: `myhw.py`)
- Event handler → JSON response: formats response (evidence: `myhw.py`)
- Create contact → DynamoDB table: writes item (evidence: `myhw.py`)
- Read contacts → DynamoDB table: reads items (evidence: `myhw.py`)
- Update contact → DynamoDB table: updates item (evidence: `myhw.py`)
- Delete contact → DynamoDB table: deletes item (evidence: `myhw.py`)
- Create contact → JSON response: formats response (evidence: `myhw.py`)
- Read contacts → JSON response: formats response (evidence: `myhw.py`)
- Update contact → JSON response: formats response (evidence: `myhw.py`)
- Delete contact → JSON response: formats response (evidence: `myhw.py`)
