Case File · Campus Hackathon Submission

Notebook

“One Campus, One Feed, Zero Lost Notices.”

Document Version
1.2 — Mentor Review Edition
Pilot Institution
NITER · Multi-Campus Scalable
Architecture
Client-First PWA + BaaS
Primary Stack
Vite · Tailwind v4 · Supabase

Document 01 · README.md

Project Overview

Unified Campus Social & Real-Time Information Hub

Vite 6.2 Tailwind CSS 4.1 Supabase PWA Ready Lighthouse 98/100 MIT License

Bridging the communication gap across university campuses with verified feeds, instant emergency blood requests, transit tracking, and resilient offline capability.

§1The Campus Problem, vs. The Notebook Solution

The Campus Problem TodayThe Notebook Solution
Buried Academic Notices: Critical exam and class routine changes get lost under thousands of informal messages in messaging groups.Dedicated Academic Hub: Clean, categorized academic notices tagged by department and semester with permanent bookmarking.
Emergency Blood Bottlenecks: Life-critical blood requests fail due to missing donor filters and slow broadcast reach.Emergency Health Hub: Instant access to blood donor calls, urgent filters, and one-tap volunteer contact actions.
Commuter Transit Uncertainty: Students miss unscheduled bus changes and room relocations while traveling.Real-Time Transport Desk: Centralized schedule updates and commuter alerts accessible from any device.
Unstable Campus Connectivity: Weak Wi-Fi in auditoriums and dormitories cuts students off from vital information.Offline-First PWA: Service Worker caching with smooth bottom status alert (“Showing cached campus content”).

§2Key Features & Hub Architecture

Five Specialized Functional Hubs

Home
General

Inter-departmental highlights, campus events, sports meets, and student club showcases.

Academic
Academic Hub

Syllabus notes, assignment briefs, exam routines, and class representative announcements.

Transport
Transport Desk

Real-time campus bus schedules, route notices, and commuter alerts.

Logistics
Logistics & Lost/Found

Hostel notices, canteen daily menus, library hours, and lost item reports.

Health
Emergency Health & Blood Registry

Urgent blood donation appeals, on-campus medical center hours, and emergency first-aid contacts.

Robust Student Identity & Security

  • Student ID & Department Tagging: Automatic profile attribution showing student batch, department, and ID.
  • Self-Service Password Reset: Integrated email-based recovery directly within the login modal.
  • Seamless Account Re-creation: Safeguards that prevent orphaned or stale user profile records.

Engagement & Personal Bookmarking

  • Multi-Sentiment Reactions: Instant reaction toggles — Upvote (endorsement/agreement), Heart (appreciation), and Helpful (academic utility).
  • Threaded Commenting: Active peer discussions under every post with real-time UI updates.
  • Private Bookmarking (Saved Vault): One-tap saving of important schedules and notes for fast recall.

Offline-First PWA Technology

  • Installable on Any Device: Installable on Android, iOS, Windows, and macOS as a native standalone app.
  • Smart Bottom Offline Banner: Non-intrusive bottom notification alert indicating cached campus mode when internet connectivity drops.
  • Automatic Background Sync: Restores live feed queries immediately upon reconnection.

Campus Safety & Support Desk

  • Community Report System: Multi-category reporting mechanism for harassment, spam, or false information.
  • One-Tap Emergency Directory: Direct WhatsApp, phone call, and email shortcuts to campus authorities and medical clubs.

§3System Architecture

Notebook leverages a modern Decoupled Client-First Progressive Web Architecture.

Client ↔ Cache ↔ Cloud
 ┌────────────────────────────────────────────────────────────────┐
 │                 Notebook Progressive Web App                   │
 │             (ES6+ Modular JS + Tailwind CSS v4)                │
 └──────────────┬───────────────────────────────┬─────────────────┘
                │ (Offline Cache)               │ (REST / WebSockets)
                ▼                               ▼
     ┌─────────────────────┐        ┌────────────────────────┐
     │   Service Worker    │        │    Supabase Backend    │
     │      (sw.js)        │        │ • PostgreSQL 15 (RLS)  │
     │ • Cache Storage     │        │ • GoTrue Auth (JWT)    │
     │ • Offline Fallback  │        │ • Realtime CDC Engine  │
     └─────────────────────┘        └────────────────────────┘

§4Quick Start Guide

Prerequisites

  • Node.js (v18.0.0 or higher recommended)
  • npm, bun, or yarn
1 — Clone & install
git clone https://github.com/your-username/notebook-campus-social.git
cd notebook-campus-social
npm install
2 — Configure environment (.env)
VITE_SUPABASE_URL=https://vrkcucdeqavujvfbkqpk.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key_here
3 — Run dev server
npm run dev
# → http://localhost:3000
4 — Build & lint for production
npm run lint
npm run build
# → optimized static bundle in /dist

§5Project Directory Structure

├── /css                       # Modular CSS layer powered by Tailwind CSS v4
│   ├── /base                  # Reset, typography, and keyframe animations
│   ├── /components            # Auth modal, cards, create-post widget, PWA toasts
│   ├── /layout                # Top navbar, bottom navigation, adaptive sidebar
│   └── /pages                 # Page-specific styling (Friends, Profile, Saved, Support)
├── /js                        # Modular ES6+ JavaScript Layer
│   ├── /config                # Supabase client singleton configuration
│   ├── /modules               # Core application engines (Auth, Feed, Comments, Nav, PWA)
│   ├── /pages                 # Standalone page controllers (Profile, Saved, Support, Report)
│   └── main.js                # Main application bootstrap and event orchestration
├── /docs                      # Documentation suite (PRD, TECHNOLOGY, README)
├── /public
│   └── manifest.json          # PWA web manifest configuration
├── index.html                 # Semantic HTML5 root document
└── sw.js                      # Service Worker for offline caching & background sync

§63-Minute Hackathon Pitch Script

TimeSegmentWhat to Say & Demonstrate
0:00–0:45The Problem“Judges, university students lose hours every week scrolling through noisy WhatsApp groups trying to find bus schedules, class routines, or urgent blood donors. Notebook solves this with a unified, verified campus social network.” (Show mobile view.)
0:45–1:45The 5 Hubs & Post Flow“Notebook has 5 dedicated hubs: Academic, Transport, Health, Logistics, and General Life. Watch how easy it is to filter exam notices or publish a post with instant image compression and student ID attribution.” (Create post & react.)
1:45–2:30Offline Resilience“Campus Wi-Fi often drops in transit or basements. Watch what happens when I switch to offline mode — Notebook keeps working from cached storage and alerts the user with a smooth bottom status toast.” (Toggle offline in DevTools.)
2:30–3:00Safety & Roadmap“We’ve also built a Campus Safety Report Desk and One-Tap Emergency Directory. In Phase 2 we expand to GPS shuttle tracking and SMS emergency donor broadcasts. Thank you!”

§7Documentation Suite

  • PRD.md — Complete Product Requirements, User Personas, Feature Matrix & Roadmap.
  • TECHNOLOGY.md — Technical Architecture, PostgreSQL 15 DDL, Security Posture & Performance Metrics.
  • README.md — Comprehensive Project Overview and Hackathon Evaluation Guide.

§8Contributors & Acknowledgements

  • Developer & Project Lead: Built for the Campus Hackathon Primary Selection.
  • Pilot Campus: National Institute of Textile Engineering & Research (NITER).
  • Special Thanks: Campus mentors, student beta testers, and open-source contributors.

Notebook — Case File compiled from README.md · PRD.md · TECHNOLOGY.md  ·  Built for the NITER Campus Hackathon