Project Overview
A high-performance proxy middleware that transforms the official GEU ERP into a modern, lightning-fast student portal.
What We Built
- Modern React frontend with priority-based modules
- Express.js proxy server maintaining GEU sessions
- Single-page architecture with drawers/dialogs
- Optimized data fetching and caching strategies
Key Improvements
- 3x faster than official website
- Zero page reloads for core functions
- Mobile-first responsive design
- Intelligent session management
Why We're Faster Than Official GEU Website
Performance Optimizations
Frontend Optimizations
- Single Page Application: No page reloads for core modules [Profile, Attendance, Notices, Exam, Fee]
- Priority-Based Loading: Critical data loads first, secondary data in background
- Component-Level Caching: Avoid redundant API calls with intelligent state management
- Modular UI: Drawers, dialogs, and tabs eliminate navigation overhead
Backend Optimizations
- Persistent Sessions: Maintain GEU cookies to avoid repeated logins
- Optimized Headers: Minimal necessary headers reduce request size
- Direct Streaming: PDFs and images streamed without buffering
- Error Prevention: Session validation prevents failed requests
Performance Comparison
HTTP-Only Cookie Management & Header Manipulation
How We Access HTTP-Only Cookies
We don't actually "access" HTTP-only cookies from the frontend - that would be a security violation. Instead, we use a sophisticated proxy pattern:
1. Cookie Jar Strategy
2. Session Persistence
3. Automatic Cookie Forwarding
Why Header Mimicking is Necessary
🛡️ GEU's Security Measures
The official GEU ERP has strict security checks that block non-browser requests. Here's why we need to mimic legitimate browser behavior:
1. CSRF Protection
Without proper CSRF tokens, all POST requests are rejected.
2. Content-Type Validation
Some endpoints only accept form-encoded data, others expect JSON.
3. Session Validation
GEU silently redirects to login page for invalid sessions - we detect and handle this.
✅ Our Solution
We replicate legitimate browser behavior while maintaining security:
- Legitimate Authentication: Users provide real credentials
- Proper Session Handling: Maintain official GEU sessions
- Respect Rate Limits: Don't overwhelm GEU servers
- No Data Storage: We don't store sensitive user data
System Architecture
Priority-Based Module System
We analyzed student usage patterns and prioritized the most frequently accessed features:
Priority 0 (Instant)
- Profile Information
- Quick Stats
- Navigation Menu
Priority 1 (Fast)
- Attendance Records
- Current Notices
- Recent Activity
Priority 2 (Lazy)
- Exam Results
- Fee History
- Document Downloads
Modern UI/UX Design
Single-Page Architecture Benefits
User Experience Enhancements
- • Zero Page Reloads: All core functions accessible via modals/drawers
- • Contextual Navigation: Related actions grouped intelligently
- • Mobile-First Design: Optimized for smartphones
- • Progressive Loading: Content appears as soon as available
- • Offline Indicators: Clear feedback when network is unavailable
Technical Implementation
- • Drawer Components: Slide-out panels for detailed views
- • Modal Dialogs: Focused interactions without navigation
- • Tab Systems: Organize related content efficiently
- • Smart Caching: Avoid redundant API calls
- • Error Boundaries: Graceful failure handling
Component Strategy
Security & Privacy
🔒 What We DON'T Do
- Store user passwords or sensitive credentials
- Log or track user activity beyond error handling
- Cache sensitive data like exam results or fee information
- Share data with third parties or external services
- Modify or alter any data from GEU ERP
✅ What We DO
- Act as a secure proxy between you and GEU ERP
- Maintain your session cookies server-side for performance
- Validate and forward your authenticated requests
- Provide enhanced error handling and user feedback
- Implement rate limiting to protect GEU servers
Security Implementation
API Endpoints & GEU Integration
Authentication
/api/auth/captchaGet login captcha and initialize session
/api/auth/loginAuthenticate with GEU credentials
/api/auth/checkVerify current session status
/api/auth/logoutClear session and logout
Profile Management
/api/profileGet student profile information
/api/profile/avatarStream profile image
/api/profile/avatarUpdate profile image
/api/profile/id-cardGet digital ID card data
Academic Data
/api/attendance/subjectsGet all subjects with attendance
/api/attendance/:subjectIdGet detailed attendance for subject
/api/exam/summaryGet exam results summary
/api/exam/backlogsGet backlog subjects
Notices & Finance
/api/circularsGet latest notices and circulars
/api/fee/submissionsGet fee payment history
/api/fee/receiptsGet fee receipt list
/api/fee/downloadDownload fee receipt PDF
Frequently Asked Questions
Technical Deep Dive
Core fetchGEU Utility
The heart of our system is the fetchGEU utility that handles all communication with GEU servers:
Session Management Strategy
Error Handling & Resilience
Performance Metrics
Our Implementation
Official GEU Website
Key Performance Factors
- Zero Page Reloads: SPA architecture eliminates navigation overhead
- Persistent Sessions: No repeated authentication required
- Smart Caching: Avoid redundant API calls with state management
- Progressive Loading: Priority-based data fetching strategy
- Modern UI: React optimizations and efficient rendering
- Direct Streaming: Files served without intermediate buffering