Skip to content

About

SSTians Birthday | React + Firebase + TailwindCSS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🎂 Birthdex | SST – End-Term Project

A production-level, visually engaging React application built for the End-Term Project. Birthdex is a scalable birthday management directory that solves the friction of tracking student celebrations in a centralized, secure, and performant manner.

Live Demo: [Add Link Here]
Demo Video: [Add Link Here]


🧠 1. Problem Statement

Who is the user?

The users are students, faculty members, and institutional administrators belonging to a specific batch or college (e.g., SST).

What problem are you solving?

In an institution with hundreds of students across multiple years, remembering and keeping track of birthdays creates social friction. Existing solutions are either scattered (relying on random status updates) or non-existent. Birthdex provides a centralized, searchable, and interactive directory where everyone can check upcoming birthdays, add reminders directly to their Google Calendar, and view batch-wide birthday statistics.

Why does this problem matter?

Celebrating milestones fosters community engagement and batch unity. Birthdex replaces messy spreadsheets and forgotten dates with an aesthetically pleasing, highly performant directory that ensures no one's special day gets missed, while providing administrators a secure way to manage batch records.


⚛️ 2. React Architecture & Usage

This project heavily implements core and advanced React paradigms to ensure performance and scalability:

  • Functional Components & Hooks: The entire app is built around modern React hooks (useState, useEffect).
  • Context API (Global State): AuthContext is used to firmly manage the administrative user session globally.
  • React Router Dom: Client-side routing is used for public views (/, /login) and protected views (/admin).
  • Advanced Hook Optimization:
    • useMemo: Caches complex filtering, sorting, and computational logic (e.g., batch analytics, today's birthdays) to eliminate unnecessary re-renders.
    • useCallback: Wraps input handlers and search functions to maintain referential equality across renders.
    • useRef: Handles DOM node interactions (e.g., closing theme menus when clicking outside).
  • Code Splitting & Lazy Loading: The /admin route is mapped using React.lazy() and wrapped in <Suspense>, ensuring the heavyweight admin bundle is loaded only when an authenticated administrator accesses it.

🔐 3. Authentication & Database

Integrated seamlessly with Firebase (BaaS):

  • Authentication: Firebase Auth handles Secure Administrator Login.
  • Protected Routes: The <ProtectedRoute> wrapper ensures unauthorized users are redirected away from the sensitive dashboard.
  • Cloud Firestore (NoSQL): Stores all student records securely.
    • Reads: Public directory fetches and dynamically queries real-time lists.
    • CRUD Operations: Total control over Data (Create, Read, Update, Delete) is handled elegantly in the Admin Panel without relying on full page reloads.

🎨 4. UI/UX & Aesthetics

A massive priority was set on delivering an interactive, premium visual experience:

  • Design System: Custom Dark Mode with dynamic Parallax CSS Blobs and Glassmorphism effects.
  • Themes Capability: The UI is reactive, offering custom themes (Default, Hacker, Ocean, Mars) easily swappable via CSS variables.
  • Micro-interactions: Interactive flip card animations, confetti blasts on "Birthday Today", and seamless modal transitions.
  • Responsive: Fluid CSS grids ensure pixel-perfect rendering across mobile, tablets, and desktop displays.

📦 5. Required Features Checklist

  • ✅ Authentication system: Secure Firebase email/password login.
  • ✅ Dashboard / Main screen: A smart hero section showing the next major celebration, statistics, and highly filterable directory.
  • ✅ Core features:
    • Real-time searching & filtering by Year/Timeframe.
    • Export Birthdays straight to Google Calendar.
    • Advanced Batch Analytics Visualization via Chart.js.
  • ✅ CRUD functionality: Admin capabilities to Create, Edit, or Delete student records.
  • ✅ Persistent storage: Fetching from and mutating Cloud Firestore.
  • ✅ Routing: SPA routing controlled via React Router v7.
  • ✅ State management: React Context API for global Auth state.

🏗️ 6. Project Structure

/src
 ├── /assets          # Static media elements
 ├── /components      # Reusable components (e.g., ProtectedRoute)
 ├── /config          # Firebase initialization & keys
 ├── /context         # Global state files (AuthContext)
 ├── /hooks           # Custom hooks (useAuth)
 ├── /pages           # Route views (Home, Login, AdminPanel, NotFound)
 ├── /scripts         # Data seeding/upload utilities
 ├── App.jsx          # Route architecture & Lazy loading configuration
 └── main.jsx         # React DOM mount point

⚙️ 7. Local Setup Instructions

  1. Clone & Install

    git clone <repo_url>
    cd Birthdex
    npm install
  2. Environment Variables Create a .env file in the root directory based on your Firebase configuration:

    VITE_FIREBASE_API_KEY=your_api_key
    VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
    VITE_FIREBASE_PROJECT_ID=your_project_id
    VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
    VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
    VITE_FIREBASE_APP_ID=your_app_id
  3. Start the Development Server

    npm run dev

(Internal Data Script: Run npm run upload once to seed the Firestore database via the admin script if you possess the secure serviceAccountKey.json).


Built with passion for the React End-Term Project Evaluation.

About

SSTians Birthday | React + Firebase + TailwindCSS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages