# chandinishaik-dot/campus-event-hub architecture

> Architecture diagram of the GitHub repository chandinishaik-dot/campus-event-hub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandinishaik-dot/campus-event-hub
- Repository: https://github.com/chandinishaik-dot/campus-event-hub

## Overview

Campus Event Hub is a Flutter campus-event app. Students use its authentication and persistent-login experience, discover events, register, manage their events, and maintain profiles; a notification screen is another documented capability. Firebase Authentication, Cloud Firestore, and Firebase Cloud Messaging are named integrations. The Dart implementation was not excerpted, so screen-to-screen and service-call ownership cannot be verified; those links are omitted rather than inferred. The graph retains the documented product capabilities and their source paths.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/home_screen.dart) (Event discovery), [`lib/screens/notification_screen.dart`](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/notification_screen.dart) (Notifications), [`lib/screens/event_details_screen.dart`](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/event_details_screen.dart) (Event details), [`lib/screens/my_events_screen.dart`](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/my_events_screen.dart) (My events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student app"]
  node_app["Flutter app<br/>[main.dart]"]
  node_notifications["Notifications"]
end

subgraph group_events["Event management"]
  node_home["Event discovery<br/>[home_screen.dart]"]
  node_event_details["Event details"]
  node_event_card["Event card<br/>[event_card.dart]"]
  node_my_events["My events"]
end

subgraph group_account["Student account"]
  node_login["Login<br/>[login_screen.dart]"]
  node_signup["Sign up<br/>[signup_screen.dart]"]
  node_profile["Profile"]
  node_edit_profile["Edit profile"]
end

subgraph group_cloud["Firebase services"]
  node_auth_service[("Firebase Auth")]
  node_firestore[("Cloud Firestore")]
  node_messaging["Cloud Messaging"]
end

node_student(("Student"))

node_student -->|"uses"| node_app
node_student -->|"authenticates"| node_login
node_student -->|"registers"| node_signup
node_student -->|"discovers events"| node_home
node_student -->|"registers events"| node_event_details
node_student -->|"manages events"| node_my_events
node_student -->|"manages profile"| node_profile
node_student -->|"views notifications"| node_notifications
node_login -.->|"authenticates"| node_auth_service
node_signup -.->|"creates account"| node_auth_service
node_home -.->|"loads events"| node_firestore
node_event_details -.->|"registers event"| node_firestore
node_my_events -.->|"loads registrations"| node_firestore
node_profile -.->|"loads profile"| node_firestore
node_edit_profile -.->|"updates profile"| node_firestore
node_notifications -.->|"receives notifications"| node_messaging
node_home -.->|"shows events"| node_event_card

click node_app "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/main.dart"
click node_login "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/login_screen.dart"
click node_signup "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/signup_screen.dart"
click node_profile "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/profile_screen.dart"
click node_edit_profile "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/edit_profile_screen.dart"
click node_home "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/home_screen.dart"
click node_event_details "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/event_details_screen.dart"
click node_event_card "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/widgets/event_card.dart"
click node_my_events "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/my_events_screen.dart"
click node_notifications "https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/notification_screen.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_app,node_notifications toneBlue
class node_home,node_event_details,node_event_card,node_my_events toneAmber
class node_login,node_signup,node_profile,node_edit_profile toneMint
class node_auth_service,node_firestore,node_messaging toneRose
class node_student toneIndigo
```

## Components

### Student app

- [Flutter app](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/main.dart): `lib/main.dart`
- [Notifications](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/notification_screen.dart): `lib/screens/notification_screen.dart`

### Event management

- [Event discovery](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Event details](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/event_details_screen.dart): `lib/screens/event_details_screen.dart`
- [Event card](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/widgets/event_card.dart): `lib/widgets/event_card.dart`
- [My events](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/my_events_screen.dart): `lib/screens/my_events_screen.dart`

### Student account

- [Login](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/login_screen.dart): `lib/screens/login_screen.dart`
- [Sign up](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/signup_screen.dart): `lib/screens/signup_screen.dart`
- [Profile](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/profile_screen.dart): `lib/screens/profile_screen.dart`
- [Edit profile](https://github.com/chandinishaik-dot/campus-event-hub/blob/main/lib/screens/edit_profile_screen.dart): `lib/screens/edit_profile_screen.dart`

### Firebase services

- **Firebase Auth**
- **Cloud Firestore**
- **Cloud Messaging**

### Other components

- **Student**

## Connections

- Student → Flutter app: uses (evidence: `README.md`)
- Student → Login: authenticates (evidence: `README.md`)
- Student → Sign up: registers (evidence: `README.md`)
- Student → Event discovery: discovers events (evidence: `README.md`)
- Student → Event details: registers events (evidence: `README.md`)
- Student → My events: manages events (evidence: `README.md`)
- Student → Profile: manages profile (evidence: `README.md`)
- Student → Notifications: views notifications (evidence: `README.md`)
- Login → Firebase Auth: authenticates
- Sign up → Firebase Auth: creates account
- Event discovery → Cloud Firestore: loads events
- Event details → Cloud Firestore: registers event
- My events → Cloud Firestore: loads registrations
- Profile → Cloud Firestore: loads profile
- Edit profile → Cloud Firestore: updates profile
- Notifications → Cloud Messaging: receives notifications
- Event discovery → Event card: shows events
