# wandersonamello/projeto-avaliativo-dev-web architecture

> Architecture diagram of the GitHub repository wandersonamello/projeto-avaliativo-dev-web, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wandersonamello/projeto-avaliativo-dev-web
- Repository: https://github.com/wandersonamello/projeto-avaliativo-dev-web

## Overview

This is a small Django authentication site with browser-based login/logout and a token-authentication API. The main workflow routes a browser request to the login view, validates credentials through Django authentication, then establishes a session or renders the login form. API clients instead receive a user summary and token. The tree also exposes Django admin. The README is empty, and no home-page or broader domain implementation is present in the sampled source, so those destinations are not represented.

Main entry points: [`core/core/urls.py`](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/urls.py) (URL routes), [`core/core/views.py`](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py) (Login view), [`core/templates/autenticacao.html`](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/templates/autenticacao.html) (Login page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web authentication"]
  node_login_view["Login view<br/>[views.py]"]
  node_logout_view["Logout view<br/>[views.py]"]
  node_login_page["Login page<br/>[autenticacao.html]"]
  node_base_template["Base template<br/>[base.html]"]
end

subgraph group_api["Token API"]
  node_login_api["Token login<br/>[views.py]"]
  node_token_model["Token model"]
end

subgraph group_platform["Django platform"]
  node_routes["URL routes<br/>[urls.py]"]
  node_django_auth["Django authentication"]
  node_sqlite[("SQLite database")]
  node_admin["Django admin"]
end

node_browser(("Browser user"))
node_api_client(("API client"))

node_browser -->|"requests page"| node_routes
node_routes -->|"routes login"| node_login_view
node_routes -->|"routes logout"| node_logout_view
node_login_view -->|"checks credentials"| node_django_auth
node_login_view -->|"starts or checks session"| node_django_auth
node_login_view -->|"renders form"| node_login_page
node_logout_view -->|"ends session"| node_django_auth
node_api_client -->|"requests token"| node_routes
node_routes -->|"routes API login"| node_login_api
node_login_api -->|"validates credentials"| node_django_auth
node_login_api -->|"gets or creates token"| node_token_model
node_token_model -->|"reads and writes"| node_sqlite
node_routes -->|"routes admin"| node_admin
node_django_auth -->|"stores auth data"| node_sqlite

click node_routes "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/urls.py"
click node_login_view "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py"
click node_logout_view "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py"
click node_login_page "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/templates/autenticacao.html"
click node_base_template "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/templates/base.html"
click node_login_api "https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.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_login_view,node_logout_view,node_login_page,node_base_template,node_browser,node_api_client toneBlue
class node_login_api,node_token_model toneAmber
class node_routes,node_django_auth,node_sqlite,node_admin toneMint
```

## Components

### Web authentication

- [Login view](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py): `core/core/views.py`
- [Logout view](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py): `core/core/views.py`
- [Login page](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/templates/autenticacao.html): `core/templates/autenticacao.html`
- [Base template](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/templates/base.html): `core/templates/base.html`

### Token API

- [Token login](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/views.py): `core/core/views.py`
- **Token model**

### Django platform

- [URL routes](https://github.com/wandersonamello/projeto-avaliativo-dev-web/blob/feature/Login/core/core/urls.py): `core/core/urls.py`
- **Django authentication**
- **SQLite database**
- **Django admin**

### Other components

- **Browser user**
- **API client**

## Connections

- Browser user → URL routes: requests page
- URL routes → Login view: routes login
- URL routes → Logout view: routes logout
- Login view → Django authentication: checks credentials
- Login view → Django authentication: starts or checks session
- Login view → Login page: renders form
- Logout view → Django authentication: ends session
- API client → URL routes: requests token
- URL routes → Token login: routes API login
- Token login → Django authentication: validates credentials
- Token login → Token model: gets or creates token
- Token model → SQLite database: reads and writes
- URL routes → Django admin: routes admin
- Django authentication → SQLite database: stores auth data
