# fabiorolim/tarefaz architecture

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

## Overview

TareFaz is a Django task-management API. A client obtains a token through the login route, then uses authenticated task endpoints to list, retrieve, create, update, or delete tasks; task queries are scoped to the logged-in user. The task model stores task details and ownership in SQLite. The README documents these API capabilities; source evidence for internal links is limited to the excerpts and SOURCE INDEX references provided.

Main entry points: [`core/api/viewsets.py`](https://github.com/fabiorolim/tarefaz/blob/master/core/api/viewsets.py) (Task endpoints), [`core/models.py`](https://github.com/fabiorolim/tarefaz/blob/master/core/models.py) (Task records), [`TareFaz/urls.py`](https://github.com/fabiorolim/tarefaz/blob/master/TareFaz/urls.py) (Project routes), [`core/urls.py`](https://github.com/fabiorolim/tarefaz/blob/master/core/urls.py) (Task routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_configuration["Django configuration<br/>[settings.py]"]
end

subgraph group_api["API workflows"]
  node_task_routes["Task routes<br/>[urls.py]"]
  node_task_endpoints["Task endpoints<br/>[viewsets.py]"]
  node_task_serializer["Task serializer<br/>[serializers.py]"]
  node_login_route["Login route<br/>[urls.py]"]
  node_token_auth["Token authentication"]
end

subgraph group_domain["Task domain"]
  node_django_users[("Django users")]
  node_task_model["Task records<br/>[models.py]"]
  node_sqlite[("SQLite database")]
  node_task_admin["Task administration<br/>[admin.py]"]
end

node_client(("API client"))

node_client -->|"sends requests"| node_project_routes
node_project_routes -->|"routes API"| node_task_routes
node_client -->|"requests token"| node_login_route
node_login_route -->|"dispatches login"| node_token_auth
node_configuration -->|"configures authentication"| node_token_auth
node_task_routes -->|"registers tasks"| node_task_endpoints
node_task_endpoints -->|"uses serializer"| node_task_serializer
node_task_endpoints -->|"queries and saves"| node_task_model
node_task_serializer -->|"serializes model"| node_task_model
node_task_endpoints -->|"scopes by user"| node_django_users
node_task_model -.->|"persists records"| node_sqlite
node_task_admin -->|"registers model"| node_task_model

click node_project_routes "https://github.com/fabiorolim/tarefaz/blob/master/TareFaz/urls.py"
click node_configuration "https://github.com/fabiorolim/tarefaz/blob/master/TareFaz/settings.py"
click node_task_routes "https://github.com/fabiorolim/tarefaz/blob/master/core/urls.py"
click node_task_endpoints "https://github.com/fabiorolim/tarefaz/blob/master/core/api/viewsets.py"
click node_task_serializer "https://github.com/fabiorolim/tarefaz/blob/master/core/api/serializers.py"
click node_login_route "https://github.com/fabiorolim/tarefaz/blob/master/core/urls.py"
click node_task_model "https://github.com/fabiorolim/tarefaz/blob/master/core/models.py"
click node_task_admin "https://github.com/fabiorolim/tarefaz/blob/master/core/admin.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_project_routes,node_configuration,node_client toneBlue
class node_task_routes,node_task_endpoints,node_task_serializer,node_login_route,node_token_auth toneAmber
class node_django_users,node_task_model,node_sqlite,node_task_admin toneMint
```

## Components

### Application entry

- [Project routes](https://github.com/fabiorolim/tarefaz/blob/master/TareFaz/urls.py): `TareFaz/urls.py`
- [Django configuration](https://github.com/fabiorolim/tarefaz/blob/master/TareFaz/settings.py): `TareFaz/settings.py`

### API workflows

- [Task routes](https://github.com/fabiorolim/tarefaz/blob/master/core/urls.py): `core/urls.py`
- [Task endpoints](https://github.com/fabiorolim/tarefaz/blob/master/core/api/viewsets.py): `core/api/viewsets.py`
- [Task serializer](https://github.com/fabiorolim/tarefaz/blob/master/core/api/serializers.py): `core/api/serializers.py`
- [Login route](https://github.com/fabiorolim/tarefaz/blob/master/core/urls.py): `core/urls.py`
- **Token authentication**

### Task domain

- **Django users**
- [Task records](https://github.com/fabiorolim/tarefaz/blob/master/core/models.py): `core/models.py`
- **SQLite database**
- [Task administration](https://github.com/fabiorolim/tarefaz/blob/master/core/admin.py): `core/admin.py`

### Other components

- **API client**

## Connections

- API client → Project routes: sends requests (evidence: `README.md`)
- Project routes → Task routes: routes API (evidence: `TareFaz/urls.py`)
- API client → Login route: requests token (evidence: `README.md`)
- Login route → Token authentication: dispatches login (evidence: `core/urls.py`)
- Django configuration → Token authentication: configures authentication (evidence: `TareFaz/settings.py`)
- Task routes → Task endpoints: registers tasks (evidence: `core/urls.py`)
- Task endpoints → Task serializer: uses serializer (evidence: `core/api/viewsets.py`)
- Task endpoints → Task records: queries and saves (evidence: `core/api/viewsets.py`)
- Task serializer → Task records: serializes model (evidence: `core/api/serializers.py`)
- Task endpoints → Django users: scopes by user (evidence: `core/api/viewsets.py`)
- Task records → SQLite database: persists records
- Task administration → Task records: registers model (evidence: `core/admin.py`)
