CampuSync is an enterprise-grade Campus & Hostel Management Ecosystem engineered using a decoupled FastAPI Microservices Architecture. It digitizes hostel complaints, automates maintenance worker job allocation, provides an AI-vision-powered Lost & Found engine, and enforces gender-segregated privacy filters for hostel residents.
π Live Production Site: https://campusync.tech (Secured with HTTPS & Nginx Reverse Proxy)
- Token Verification: Custom JWT middleware validating Firebase ID tokens across all microservices.
- Three Distinct System Roles:
- π STUDENT (Hostel Resident vs Day Scholar / College Student)
- π οΈ WORKER (Maintenance Technicians with specialized skill sets & workload caps)
- π¨βπΌ ADMIN (System Managers with full user & role management capabilities)
- Google Gemini 1.5 Vision AI: Automated image tag generation and multi-item visual similarity matching.
- Location Context Selection: Reporters specify where an item was lost or found (π« College Campus vs π Hostel Area).
- Gender-Segregated Hostel Privacy Filters:
- π¦ Hostel Male Students: View only
Hostel Maleitems + universalCollege Campusitems. - π§ Hostel Female Students: View only
Hostel Femaleitems + universalCollege Campusitems. - π« Day Scholar (College) Students: View universal
College Campusitems with classroom location details.
- π¦ Hostel Male Students: View only
- Safe Claim Contact: Replaces raw email display with a secure "I think this is mine! π" contact pop-up.
- Skill-Based Auto-Assignment: Complaints are automatically assigned to available workers matching the required work type (
Electrical,Plumbing,Cleaning,AC Repair,Carpentry,Painting,Pest Control,General Maintenance). - Workload Capacity Engine: Enforces max active complaint limits per worker to prevent technician burn-out.
- Retroactive Task Assignment: When a worker registers or updates their capacity, unassigned queue complaints are automatically assigned.
- Asynchronous Event Pipeline: Apache Kafka event producer/consumer decouples complaint status changes and AI match alerts.
- Real-Time Notifications: Instant updates delivered to student and worker dashboards.
CampuSync implements a strict Database-per-Service Architecture inside Docker containers, managed via docker-compose.
π¦ CampuSync Ecosystem
βββ π Nginx Reverse Proxy (Ports 80 / 443 SSL/TLS)
β βββ Certificate mounting, HTTPS redirection & API routing
β
βββ π¨ Frontend Service (React 18 + Vite)
β βββ Ocean Glassmorphism UI, Responsive Mobile Bottom Navigation
β
βββ π Auth Microservice (FastAPI - Port 8081)
β βββ Database: hostelhub_auth (PostgreSQL)
β βββ Profile sync, gender & student type tracking, RBAC role management
β
βββ β‘ Complaint Microservice (FastAPI - Port 8082)
β βββ Database: hostelhub_complaint (PostgreSQL)
β βββ Complaint engine, capacity-aware worker dispatcher, Kafka producer
β
βββ π€ Lost & Found Microservice (FastAPI - Port 8083)
β βββ Database: hostelhub_lostfound (PostgreSQL)
β βββ Gemini Vision AI tagger, location context & gender filter engine
β
βββ π’ Notification Microservice (FastAPI - Port 8084)
β βββ Database: hostelhub_notifications (PostgreSQL)
β βββ Apache Kafka Consumer & real-time notification broadcaster
β
βββ π Infrastructure Containers
βββ PostgreSQL (Multi-database container)
βββ Apache Kafka & Zookeeper Cluster
| Domain | Technologies |
|---|---|
| Frontend UI | React 18, Vite, Vanilla CSS (Custom Ocean Glassmorphism), Context API, Axios |
| Backend API | Python 3.10+, FastAPI, Uvicorn, Pydantic v2, SQLAlchemy 2.0 |
| Databases | PostgreSQL (4 isolated databases per microservice) |
| Authentication | Firebase Admin SDK, JWT Token Interceptors, Role-Based Access Control |
| AI / Computer Vision | Google Gemini 1.5 Vision API |
| Message Broker | Apache Kafka, Zookeeper |
| DevOps & Proxy | Docker, Docker Compose, Nginx, Let's Encrypt SSL/TLS, DuckDNS |
Provides system-wide user role management (Promote/Demote between Student, Worker, and Admin), real-time service health telemetry, and global complaint metrics.
Allows students to file complaints, report lost & found items with location context, filter items by gender & campus area, and safely contact item finders.
Dedicated maintenance console for technicians to view assigned complaints based on work category specialization, monitor workload limits, and update task progress.
- Docker Engine & Docker Compose
- Firebase Project Credentials (
firebase-service-account.json) - Google Gemini API Key
git clone https://github.com/yashvanthbalaji/campusync-python-fullstack.git
cd campusync-python-fullstackCreate .env files in each service directory containing your database URLs, Firebase parameters, and Gemini API keys.
docker compose up -d --build- Frontend App:
http://localhostorhttps://campusync.tech - Auth Service:
http://localhost:8081/docs - Complaint Service:
http://localhost:8082/docs - Lost & Found Service:
http://localhost:8083/docs - Notification Service:
http://localhost:8084/docs
Yashvanth Balaji
Python Full-Stack & Microservices Engineer
π» Python β’ FastAPI β’ React β’ PostgreSQL β’ Kafka β’ Firebase β’ Docker β’ Cloud Architecture



