# emanuelsilva69/ilharol- architecture

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

- Interactive diagram: https://gitdiagram.com/emanuelsilva69/ilharol-
- Repository: https://github.com/emanuelsilva69/ilharol-

## Overview

IlhaRolê is a prototype cultural-events platform for São Luís: visitors browse and map events, then use event details, login, personal agenda, organizer, and profile features. The React wireframe uses the API when available and mock state as fallback; the FastAPI backend documents authentication, event management, favorites, reviews, notifications, reports, and profiles backed by PostgreSQL. The graph preserves those documented capabilities, while some backend service-to-repository links rely on source-index references rather than inspected call sites; unsampled behavior is not asserted.

Main entry points: [`frontend/src/App.tsx`](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/App.tsx) (React application), [`backend/app/main.py`](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/main.py) (FastAPI routes), [`backend/app/services/events.py`](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/events.py) (Event management), [`backend/app/repositories`](https://github.com/emanuelsilva69/ilharol-/tree/main/backend/app/repositories) (Data repositories)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_webapp["React application<br/>[App.tsx]"]
  node_feed["Event feed<br/>[FeedPage.tsx]"]
  node_details["Event details"]
  node_agenda["Personal agenda<br/>[AgendaPage.tsx]"]
  node_login["Login and signup<br/>[LoginPage.tsx]"]
  node_organizer["Organizer tools<br/>[OrganizerPage.tsx]"]
  node_profile["Profile center<br/>[ProfilePage.tsx]"]
  node_map["Event map<br/>[EventMap.tsx]"]
  node_mockdata["Prototype event data<br/>[mockEvents.ts]"]
end

subgraph group_api["API access"]
  node_api_client["API client<br/>[api.ts]"]
  node_api_routes["FastAPI routes<br/>[main.py]"]
end

subgraph group_domain["Domain services"]
  node_auth["Authentication<br/>[auth.py]"]
  node_events["Event management<br/>[events.py]"]
  node_catalog["Categories and venues<br/>[catalog.py]"]
  node_profile_service["Profile and activity<br/>[profile.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
  node_reports["Content reports<br/>[reports.py]"]
  node_serializers["API serialization<br/>[serializers.py]"]
end

subgraph group_persistence["Persistence and security"]
  node_repositories["Data repositories"]
  node_models["Domain models<br/>[models.py]"]
  node_database[("PostgreSQL<br/>[db.py]")]
  node_security["JWT and passwords<br/>[security.py]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_webapp
node_webapp -->|"renders"| node_feed
node_webapp -->|"renders"| node_details
node_webapp -->|"renders"| node_agenda
node_webapp -->|"renders"| node_login
node_webapp -->|"renders"| node_organizer
node_webapp -->|"renders"| node_profile
node_feed -.->|"shows map"| node_map
node_webapp -->|"loads fallback"| node_mockdata
node_webapp -->|"calls"| node_api_client
node_api_client -->|"requests"| node_api_routes
node_api_routes -->|"dispatches auth"| node_auth
node_api_routes -->|"dispatches events"| node_events
node_api_routes -->|"dispatches profile"| node_profile_service
node_auth -->|"uses users"| node_repositories
node_events -->|"uses event data"| node_repositories
node_profile_service -->|"uses activity data"| node_repositories
node_events -->|"invokes"| node_notifications
node_auth -->|"uses tokens"| node_security
node_api_routes -->|"authenticates"| node_security
node_repositories -->|"queries"| node_models
node_repositories -.->|"uses sessions"| node_database
node_events -->|"resolves categories"| node_catalog
node_api_routes -.->|"dispatches reports"| node_reports
node_events -->|"serializes events"| node_serializers

click node_webapp "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/App.tsx"
click node_feed "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/FeedPage.tsx"
click node_details "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/EventDetailsPage.tsx"
click node_agenda "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/AgendaPage.tsx"
click node_login "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/LoginPage.tsx"
click node_organizer "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/OrganizerPage.tsx"
click node_profile "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/ProfilePage.tsx"
click node_map "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/components/EventMap.tsx"
click node_mockdata "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/data/mockEvents.ts"
click node_api_client "https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/lib/api.ts"
click node_api_routes "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/main.py"
click node_auth "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/auth.py"
click node_events "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/events.py"
click node_catalog "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/catalog.py"
click node_profile_service "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/profile.py"
click node_notifications "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/notifications.py"
click node_reports "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/reports.py"
click node_serializers "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/serializers.py"
click node_repositories "https://github.com/emanuelsilva69/ilharol-/tree/main/backend/app/repositories"
click node_models "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/models.py"
click node_database "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/db.py"
click node_security "https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/security.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_webapp,node_feed,node_details,node_agenda,node_login,node_organizer,node_profile,node_map,node_mockdata toneBlue
class node_api_client,node_api_routes toneAmber
class node_auth,node_events,node_catalog,node_profile_service,node_notifications,node_reports,node_serializers toneMint
class node_repositories,node_models,node_database,node_security toneRose
class node_visitor toneIndigo
```

## Components

### Web experience

- [React application](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Event feed](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/FeedPage.tsx): `frontend/src/pages/FeedPage.tsx`
- [Event details](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/EventDetailsPage.tsx): `frontend/src/pages/EventDetailsPage.tsx`
- [Personal agenda](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/AgendaPage.tsx): `frontend/src/pages/AgendaPage.tsx`
- [Login and signup](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/LoginPage.tsx): `frontend/src/pages/LoginPage.tsx`
- [Organizer tools](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/OrganizerPage.tsx): `frontend/src/pages/OrganizerPage.tsx`
- [Profile center](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/pages/ProfilePage.tsx): `frontend/src/pages/ProfilePage.tsx`
- [Event map](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/components/EventMap.tsx): `frontend/src/components/EventMap.tsx`
- [Prototype event data](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/data/mockEvents.ts): `frontend/src/data/mockEvents.ts`

### API access

- [API client](https://github.com/emanuelsilva69/ilharol-/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`
- [FastAPI routes](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/main.py): `backend/app/main.py`

### Domain services

- [Authentication](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/auth.py): `backend/app/services/auth.py`
- [Event management](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/events.py): `backend/app/services/events.py`
- [Categories and venues](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/catalog.py): `backend/app/services/catalog.py`
- [Profile and activity](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/profile.py): `backend/app/services/profile.py`
- [Notifications](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/notifications.py): `backend/app/services/notifications.py`
- [Content reports](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/services/reports.py): `backend/app/services/reports.py`
- [API serialization](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/serializers.py): `backend/app/serializers.py`

### Persistence and security

- [Data repositories](https://github.com/emanuelsilva69/ilharol-/tree/main/backend/app/repositories): `backend/app/repositories`
- [Domain models](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/models.py): `backend/app/models.py`
- [PostgreSQL](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/db.py): `backend/app/db.py`
- [JWT and passwords](https://github.com/emanuelsilva69/ilharol-/blob/main/backend/app/security.py): `backend/app/security.py`

### Other components

- **Visitor**

## Connections

- Visitor → React application: uses (evidence: `README.md`)
- React application → Event feed: renders (evidence: `frontend/src/App.tsx`)
- React application → Event details: renders (evidence: `frontend/src/App.tsx`)
- React application → Personal agenda: renders (evidence: `frontend/src/App.tsx`)
- React application → Login and signup: renders (evidence: `frontend/src/App.tsx`)
- React application → Organizer tools: renders (evidence: `frontend/src/App.tsx`)
- React application → Profile center: renders (evidence: `frontend/src/App.tsx`)
- Event feed → Event map: shows map
- React application → Prototype event data: loads fallback (evidence: `frontend/src/App.tsx`)
- React application → API client: calls (evidence: `frontend/src/App.tsx`)
- API client → FastAPI routes: requests (evidence: `README.md`)
- FastAPI routes → Authentication: dispatches auth
- FastAPI routes → Event management: dispatches events
- FastAPI routes → Profile and activity: dispatches profile
- Authentication → Data repositories: uses users (evidence: `backend/app/services/auth.py`)
- Event management → Data repositories: uses event data (evidence: `backend/app/services/events.py`)
- Profile and activity → Data repositories: uses activity data (evidence: `backend/app/services/profile.py`)
- Event management → Notifications: invokes (evidence: `backend/app/services/events.py`)
- Authentication → JWT and passwords: uses tokens (evidence: `backend/app/services/auth.py`)
- FastAPI routes → JWT and passwords: authenticates
- Data repositories → Domain models: queries (evidence: `backend/app/repositories/events.py`)
- Data repositories → PostgreSQL: uses sessions
- Event management → Categories and venues: resolves categories (evidence: `backend/app/services/events.py`)
- FastAPI routes → Content reports: dispatches reports
- Event management → API serialization: serializes events (evidence: `backend/app/services/events.py`)
