# vikrant-sainii/xploreapp architecture

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

- Interactive diagram: https://gitdiagram.com/vikrant-sainii/xploreapp
- Repository: https://github.com/vikrant-sainii/xploreapp

## Overview

XploreApp is a Flutter college-event management app for NIT Jalandhar, with student and administrator experiences and a separate club-head area represented in the source tree. The documented student workflow is browsing events, registering, receiving updates, and reviewing event history; administrators manage events and club activities, view participation analytics, and announce information. The README describes BLoC and REST/SQL as the intended architecture, with the backend still in progress. Application Dart sources were not sampled, so internal wiring is shown only as unverified dashed relationships.

Main entry points: [`lib/screens/user/user_event_details_screen.dart`](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_event_details_screen.dart) (Event registration), [`lib/screens/user/user_upcoming_events_screen.dart`](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_upcoming_events_screen.dart) (Browse events), [`lib/screens/admin`](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/admin) (Admin screens), [`lib/services/admin_service.dart`](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/admin_service.dart) (Admin operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student["Student experience"]
  node_student_ui["Student screens"]
  node_student_state["Student BLoCs"]
  node_event_browse["Browse events"]
  node_event_register["Event registration"]
  node_event_history["Event history"]
  node_notifications["Notifications"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin screens"]
  node_admin_state["Admin state"]
  node_admin_service["Admin operations<br/>[admin_service.dart]"]
end

subgraph group_club["Club operations"]
  node_club_ui["Club-head screens"]
  node_club_state["Club state"]
end

subgraph group_app["Application layers"]
  node_event_state["Event state"]
  node_auth["Authentication<br/>[auth_service.dart]"]
  node_api["REST API layer<br/>[api_config.dart]"]
end

node_student_actor(("Student"))
node_admin_actor(("Administrator"))
node_head_actor(("Club head"))
node_backend["REST backend"]
node_sql[("SQL database")]

node_student_actor -->|"browses"| node_event_browse
node_event_browse -->|"registers"| node_event_register
node_event_register -->|"gets updates"| node_notifications
node_event_register -->|"reviews history"| node_event_history
node_admin_actor -->|"manages"| node_admin_ui
node_admin_ui -.->|"delegates"| node_admin_service
node_admin_service -.->|"requests data"| node_backend
node_head_actor -.->|"operates clubs"| node_club_ui
node_student_ui -.->|"dispatches"| node_student_state
node_admin_ui -.->|"dispatches"| node_admin_state
node_club_ui -.->|"dispatches"| node_club_state
node_event_browse -.->|"loads events"| node_event_state
node_event_register -.->|"registers"| node_event_state
node_student_ui -.->|"authenticates"| node_auth
node_admin_service -.->|"uses API"| node_api
node_api -.->|"calls"| node_backend
node_backend -.->|"stores data"| node_sql

click node_student_ui "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/user"
click node_student_state "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/event"
click node_event_browse "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_upcoming_events_screen.dart"
click node_event_register "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_event_details_screen.dart"
click node_event_history "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_registered_events_screen.dart"
click node_notifications "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/notification_service.dart"
click node_admin_ui "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/admin"
click node_admin_state "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/admin"
click node_admin_service "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/admin_service.dart"
click node_club_ui "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/head"
click node_club_state "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/club"
click node_event_state "https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/event"
click node_auth "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/auth_service.dart"
click node_api "https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/api_config.dart"

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_student_ui,node_student_state,node_event_browse,node_event_register,node_event_history,node_notifications toneBlue
class node_admin_ui,node_admin_state,node_admin_service,node_sql toneAmber
class node_club_ui,node_club_state toneMint
class node_event_state,node_auth,node_api toneRose
class node_student_actor,node_admin_actor,node_head_actor,node_backend toneIndigo
```

## Components

### Student experience

- [Student screens](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/user): `lib/screens/user`
- [Student BLoCs](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/event): `lib/blocs/event`
- [Browse events](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_upcoming_events_screen.dart): `lib/screens/user/user_upcoming_events_screen.dart`
- [Event registration](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_event_details_screen.dart): `lib/screens/user/user_event_details_screen.dart`
- [Event history](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/screens/user/user_registered_events_screen.dart): `lib/screens/user/user_registered_events_screen.dart`
- [Notifications](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/notification_service.dart): `lib/services/notification_service.dart`

### Administration

- [Admin screens](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/admin): `lib/screens/admin`
- [Admin state](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/admin): `lib/blocs/admin`
- [Admin operations](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/admin_service.dart): `lib/services/admin_service.dart`

### Club operations

- [Club-head screens](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/screens/head): `lib/screens/head`
- [Club state](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/club): `lib/blocs/club`

### Application layers

- [Event state](https://github.com/vikrant-sainii/xploreapp/tree/main/lib/blocs/event): `lib/blocs/event`
- [Authentication](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/auth_service.dart): `lib/services/auth_service.dart`
- [REST API layer](https://github.com/vikrant-sainii/xploreapp/blob/main/lib/services/api_config.dart): `lib/services/api_config.dart`

### Other components

- **Student**
- **Administrator**
- **Club head**
- **REST backend**
- **SQL database**

## Connections

- Student → Browse events: browses (evidence: `README.md`)
- Browse events → Event registration: registers (evidence: `README.md`)
- Event registration → Notifications: gets updates (evidence: `README.md`)
- Event registration → Event history: reviews history (evidence: `README.md`)
- Administrator → Admin screens: manages (evidence: `README.md`)
- Admin screens → Admin operations: delegates
- Admin operations → REST backend: requests data
- Club head → Club-head screens: operates clubs
- Student screens → Student BLoCs: dispatches
- Admin screens → Admin state: dispatches
- Club-head screens → Club state: dispatches
- Browse events → Event state: loads events
- Event registration → Event state: registers
- Student screens → Authentication: authenticates
- Admin operations → REST API layer: uses API
- REST API layer → REST backend: calls
- REST backend → SQL database: stores data
