# pbp-kelompok-a12/restyle architecture

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

- Interactive diagram: https://gitdiagram.com/pbp-kelompok-a12/restyle
- Repository: https://github.com/pbp-kelompok-a12/restyle

## Overview

RE:STYLE is a Django digital-wardrobe and sustainable-fashion platform. The documented user journey spans account/style setup, wardrobe management, outfit building and weekly planning, with community sharing and shopping reminders as supporting capabilities. The sampled code confirms account/profile handling, a community with posts, comments, likes, saves and follows, plus minimal closet and planner views. The README documents weather and other product features not evident in sampled implementation; those are marked as documented or unverified rather than treated as implemented. The graph omits deployment and build infrastructure.

Main entry points: [`community/views.py`](https://github.com/pbp-kelompok-a12/restyle/blob/main/community/views.py) (Community feed), [`main/views.py`](https://github.com/pbp-kelompok-a12/restyle/blob/main/main/views.py) (Account and style setup), [`closet/views.py`](https://github.com/pbp-kelompok-a12/restyle/blob/main/closet/views.py) (Digital closet), [`planner/views.py`](https://github.com/pbp-kelompok-a12/restyle/blob/main/planner/views.py) (Weekly planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and profiles"]
  node_account["Account and style setup<br/>[views.py]"]
  node_profiledata[("User profile data<br/>[models.py]")]
  node_accountroutes["Account routes<br/>[urls.py]"]
end

subgraph group_wardrobe["Wardrobe and planning"]
  node_wardrobe["Digital closet<br/>[views.py]"]
  node_outfit["Outfit builder"]
  node_planner["Weekly planner<br/>[views.py]"]
  node_shopping["Shopping reminder"]
  node_closetroutes["Closet route<br/>[urls.py]"]
  node_plannerroutes["Planner route<br/>[urls.py]"]
end

subgraph group_community["Fashion community"]
  node_community["Community feed<br/>[views.py]"]
  node_communityforms["Post and comment forms<br/>[forms.py]"]
  node_communitydata[("Posts and social data<br/>[models.py]")]
  node_communityroutes["Community routes<br/>[urls.py]"]
end

subgraph group_integrations["External services"]
  node_weather["Weather service"]
end

node_student(("Student user"))
node_admin(("Admin user"))

node_student -->|"registers or logs in"| node_account
node_account -->|"creates and updates"| node_profiledata
node_account -->|"redirects to profile"| node_community
node_accountroutes -->|"routes requests"| node_account
node_student -->|"manages clothing"| node_wardrobe
node_closetroutes -->|"routes requests"| node_wardrobe
node_student -->|"builds combinations"| node_outfit
node_wardrobe -.->|"supplies clothing"| node_outfit
node_student -->|"plans outfits"| node_planner
node_plannerroutes -->|"routes requests"| node_planner
node_planner -.->|"requests weather"| node_weather
node_student -->|"checks similar items"| node_shopping
node_wardrobe -.->|"compares category and color"| node_shopping
node_student -->|"shares and browses"| node_community
node_admin -->|"moderates content"| node_community
node_communityroutes -->|"routes requests"| node_community
node_community -->|"validates submissions"| node_communityforms
node_community -->|"reads and writes"| node_communitydata

click node_account "https://github.com/pbp-kelompok-a12/restyle/blob/main/main/views.py"
click node_profiledata "https://github.com/pbp-kelompok-a12/restyle/blob/main/main/models.py"
click node_wardrobe "https://github.com/pbp-kelompok-a12/restyle/blob/main/closet/views.py"
click node_outfit "https://github.com/pbp-kelompok-a12/restyle/tree/main/closet"
click node_planner "https://github.com/pbp-kelompok-a12/restyle/blob/main/planner/views.py"
click node_community "https://github.com/pbp-kelompok-a12/restyle/blob/main/community/views.py"
click node_communityforms "https://github.com/pbp-kelompok-a12/restyle/blob/main/community/forms.py"
click node_communitydata "https://github.com/pbp-kelompok-a12/restyle/blob/main/community/models.py"
click node_communityroutes "https://github.com/pbp-kelompok-a12/restyle/blob/main/community/urls.py"
click node_accountroutes "https://github.com/pbp-kelompok-a12/restyle/blob/main/main/urls.py"
click node_closetroutes "https://github.com/pbp-kelompok-a12/restyle/blob/main/closet/urls.py"
click node_plannerroutes "https://github.com/pbp-kelompok-a12/restyle/blob/main/planner/urls.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_account,node_profiledata,node_accountroutes,node_student,node_admin toneBlue
class node_wardrobe,node_outfit,node_planner,node_shopping,node_closetroutes,node_plannerroutes toneAmber
class node_community,node_communityforms,node_communitydata,node_communityroutes toneMint
class node_weather toneRose
```

## Components

### Identity and profiles

- [Account and style setup](https://github.com/pbp-kelompok-a12/restyle/blob/main/main/views.py): `main/views.py`
- [User profile data](https://github.com/pbp-kelompok-a12/restyle/blob/main/main/models.py): `main/models.py`
- [Account routes](https://github.com/pbp-kelompok-a12/restyle/blob/main/main/urls.py): `main/urls.py`

### Wardrobe and planning

- [Digital closet](https://github.com/pbp-kelompok-a12/restyle/blob/main/closet/views.py): `closet/views.py`
- [Outfit builder](https://github.com/pbp-kelompok-a12/restyle/tree/main/closet): `closet`
- [Weekly planner](https://github.com/pbp-kelompok-a12/restyle/blob/main/planner/views.py): `planner/views.py`
- **Shopping reminder**
- [Closet route](https://github.com/pbp-kelompok-a12/restyle/blob/main/closet/urls.py): `closet/urls.py`
- [Planner route](https://github.com/pbp-kelompok-a12/restyle/blob/main/planner/urls.py): `planner/urls.py`

### Fashion community

- [Community feed](https://github.com/pbp-kelompok-a12/restyle/blob/main/community/views.py): `community/views.py`
- [Post and comment forms](https://github.com/pbp-kelompok-a12/restyle/blob/main/community/forms.py): `community/forms.py`
- [Posts and social data](https://github.com/pbp-kelompok-a12/restyle/blob/main/community/models.py): `community/models.py`
- [Community routes](https://github.com/pbp-kelompok-a12/restyle/blob/main/community/urls.py): `community/urls.py`

### External services

- **Weather service**

### Other components

- **Student user**
- **Admin user**

## Connections

- Student user → Account and style setup: registers or logs in (evidence: `README.md`)
- Account and style setup → User profile data: creates and updates (evidence: `main/views.py`)
- Account and style setup → Community feed: redirects to profile (evidence: `main/views.py`)
- Account routes → Account and style setup: routes requests (evidence: `main/urls.py`)
- Student user → Digital closet: manages clothing (evidence: `README.md`)
- Closet route → Digital closet: routes requests (evidence: `closet/urls.py`)
- Student user → Outfit builder: builds combinations (evidence: `README.md`)
- Digital closet → Outfit builder: supplies clothing (evidence: `closet/urls.py`)
- Student user → Weekly planner: plans outfits (evidence: `README.md`)
- Planner route → Weekly planner: routes requests (evidence: `planner/urls.py`)
- Weekly planner → Weather service: requests weather (evidence: `README.md`)
- Student user → Shopping reminder: checks similar items (evidence: `README.md`)
- Digital closet → Shopping reminder: compares category and color (evidence: `README.md`)
- Student user → Community feed: shares and browses (evidence: `README.md`)
- Admin user → Community feed: moderates content (evidence: `README.md`)
- Community routes → Community feed: routes requests (evidence: `community/urls.py`)
- Community feed → Post and comment forms: validates submissions (evidence: `community/views.py`)
- Community feed → Posts and social data: reads and writes (evidence: `community/views.py`)
