# lankeharshitha/sdlc architecture

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

## Overview

SmartSDLC is an AI-assisted SDLC backend offering requirement classification and code-oriented assistance through a Flask API. The principal workflow accepts uploaded PDF requirements, extracts their text, classifies sentences into SDLC phases, and returns classifications grouped by phase. Other documented API capabilities generate code and tests, fix bugs, summarize code, and answer SDLC questions. The source excerpt supports the backend workflow and model-generation calls; the HTML file and project documents are not sampled, so their behavior and connections are not assumed.

Main entry points: [`Project Folder/smart_sdlc.py`](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py) (Model Response Generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["API Interface"]
  node_web_ui["Web Interface<br/>[smartsdlc.html]"]
  node_api["Flask API<br/>[smart_sdlc.py]"]
  node_tunnel["ngrok Tunnel<br/>[smart_sdlc.py]"]
end

subgraph group_requirements["Requirements Workflow"]
  node_upload["Upload Requirements<br/>[smart_sdlc.py]"]
  node_pdf["PDF Text Extraction<br/>[smart_sdlc.py]"]
  node_classification["Phase Classification<br/>[smart_sdlc.py]"]
  node_phase_results["Phase Results<br/>[smart_sdlc.py]"]
end

subgraph group_assistance["AI Assistance"]
  node_code_generation["Code Generation<br/>[smart_sdlc.py]"]
  node_bug_fixing["Bug Fixing<br/>[smart_sdlc.py]"]
  node_test_generation["Test Generation<br/>[smart_sdlc.py]"]
  node_code_summary["Code Summary<br/>[smart_sdlc.py]"]
  node_chat["SDLC Chat<br/>[smart_sdlc.py]"]
  node_response_generation["Model Response Generation<br/>[smart_sdlc.py]"]
  node_model["Loaded Language Model<br/>[smart_sdlc.py]"]
end

node_user(("User"))

node_user -->|"sends requests"| node_api
node_upload -->|"extracts text"| node_pdf
node_upload -->|"classifies text"| node_classification
node_upload -->|"returns groups"| node_phase_results
node_classification -->|"requests classifications"| node_response_generation
node_code_generation -->|"requests code"| node_response_generation
node_bug_fixing -->|"requests fixes"| node_response_generation
node_test_generation -->|"requests tests"| node_response_generation
node_code_summary -->|"requests summary"| node_response_generation
node_chat -->|"requests answer"| node_response_generation
node_response_generation -->|"generates output"| node_model
node_tunnel -->|"exposes server"| node_api

click node_web_ui "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smartsdlc.html"
click node_api "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_upload "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_pdf "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_classification "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_phase_results "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_code_generation "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_bug_fixing "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_test_generation "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_code_summary "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_chat "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_response_generation "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_model "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py"
click node_tunnel "https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.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_web_ui,node_api,node_tunnel,node_user toneBlue
class node_upload,node_pdf,node_classification,node_phase_results toneAmber
class node_code_generation,node_bug_fixing,node_test_generation,node_code_summary,node_chat,node_response_generation,node_model toneMint
```

## Components

### API Interface

- [Web Interface](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smartsdlc.html): `Project Folder/smartsdlc.html`
- [Flask API](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [ngrok Tunnel](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`

### Requirements Workflow

- [Upload Requirements](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [PDF Text Extraction](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Phase Classification](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Phase Results](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`

### AI Assistance

- [Code Generation](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Bug Fixing](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Test Generation](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Code Summary](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [SDLC Chat](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Model Response Generation](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`
- [Loaded Language Model](https://github.com/lankeharshitha/sdlc/blob/main/Project%20Folder/smart_sdlc.py): `Project Folder/smart_sdlc.py`

### Other components

- **User**

## Connections

- User → Flask API: sends requests (evidence: `Project Folder/smart_sdlc.py`)
- Upload Requirements → PDF Text Extraction: extracts text (evidence: `Project Folder/smart_sdlc.py`)
- Upload Requirements → Phase Classification: classifies text (evidence: `Project Folder/smart_sdlc.py`)
- Upload Requirements → Phase Results: returns groups (evidence: `Project Folder/smart_sdlc.py`)
- Phase Classification → Model Response Generation: requests classifications (evidence: `Project Folder/smart_sdlc.py`)
- Code Generation → Model Response Generation: requests code (evidence: `Project Folder/smart_sdlc.py`)
- Bug Fixing → Model Response Generation: requests fixes (evidence: `Project Folder/smart_sdlc.py`)
- Test Generation → Model Response Generation: requests tests (evidence: `Project Folder/smart_sdlc.py`)
- Code Summary → Model Response Generation: requests summary (evidence: `Project Folder/smart_sdlc.py`)
- SDLC Chat → Model Response Generation: requests answer (evidence: `Project Folder/smart_sdlc.py`)
- Model Response Generation → Loaded Language Model: generates output (evidence: `Project Folder/smart_sdlc.py`)
- ngrok Tunnel → Flask API: exposes server (evidence: `Project Folder/smart_sdlc.py`)
