# senadurcan/airnbclone architecture

> Architecture diagram of the GitHub repository senadurcan/airnbclone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/senadurcan/airnbclone
- Repository: https://github.com/senadurcan/airnbclone

## Overview

##### Project type and purpose
- This is a monolithic full-stack web application built with Django (a Python MVC/MTV framework).
- It implements an “Airbnb clone” (Airnbclone), handling user accounts, property listings, booking confirmation, profile pages, static assets, and media uploads.

##### File structure
- Top-level
- manage.py – Django CLI entry point
- db.sqlite3 – development database
- Airbnb/ – Django project directory (settings, URL router, WSGI/ASGI)
- myApp/ – main Django application
- media/ – user-uploaded assets (postpic, profilpic)
- static/ & templates/ under myApp – front-end files
- Key patterns
- MTV (Model-Template-View) architecture
- settings.py configures database, static & media roots
- urls.py routes incoming HTTP requests to myApp.views
- models.py + migrations/ define persistence layer
- views.py + forms.py handle request processing & data validation

##### README for additional insights
- Minimal description (“Airnbclone”), but file structure strongly implies standard Django stack.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client Layer
    UserBrowser["User Browser / Mobile"]:::external
    UserBrowser -->|HTTP/S Request| NginxGunicorn

    %% External Layer
    NginxGunicorn["Nginx / Gunicorn"]:::external
    NginxGunicorn -->|WSGI Call| DjangoWSGI

    %% Server Layer
    subgraph "Django Application Server"
        direction TB
        DjangoWSGI["Django WSGI/ASGI"]:::code

        subgraph "URL Routing"
            direction TB
            URLDispatcher["urls.py"]:::code
        end

        subgraph "Business Logic"
            direction TB
            Views["views.py"]:::code
            Forms["forms.py"]:::code
        end

        subgraph "Data Models"
            direction TB
            Models["models.py"]:::code
            Migrations["migrations/"]:::code
        end

        subgraph "Presentation"
            direction TB
            Templates["templates/*.html"]:::code
            StaticAssets["static/"]:::code
        end

        DjangoWSGI --> URLDispatcher
        URLDispatcher --> Views
        Views --> Forms
        Views --> Models
        Views --> Templates
        Templates --> UserBrowser
        StaticAssets --> UserBrowser
    end

    %% Data Layer
    subgraph "Data Storage"
        direction TB
        SQLiteDB["db.sqlite3"]:::data
        MediaFiles["media/"]:::data
    end

    Models -->|ORM Query| SQLiteDB
    Views -->|Media Uploads/Fetch| MediaFiles

    %% Click Events
    click ManagePy "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/manage.py"

    %% Styling
    classDef code fill:#cce5ff,stroke:#3399ff,color:#003366;
    classDef data fill:#d4edda,stroke:#28a745,color:#155724;
    classDef external fill:#fff3cd,stroke:#ffc107,color:#856404;

    %% Component Clicks
    click Views "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/myApp/views.py"
    click Forms "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/myApp/forms.py"
    click Models "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/myApp/models.py"
    click URLDispatcher "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/Airbnb/urls.py"
    click Templates "https://github.com/senadurcan/airnbclone/tree/main/AirbnbStaj/Airbnb/myApp/templates/"
    click StaticAssets "https://github.com/senadurcan/airnbclone/tree/main/AirbnbStaj/Airbnb/myApp/static/"
    click Migrations "https://github.com/senadurcan/airnbclone/tree/main/AirbnbStaj/Airbnb/myApp/migrations/"
    click SQLiteDB "https://github.com/senadurcan/airnbclone/blob/main/AirbnbStaj/Airbnb/db.sqlite3"
    click MediaFiles "https://github.com/senadurcan/airnbclone/tree/main/AirbnbStaj/Airbnb/media/"
```
