🎓 REC Durgapur '88 Directory — Feature & User Guide

Welcome to the NIT Durgapur (formerly REC) Batch of 1988 Yearbook & Directory! This platform provides a secure, GDPR-compliant yearbook directory for alumni classmates.

This guide describes all yearbook features, local/Hugging Face Space integration, data synchronization procedures, and core security details.

1. Access & Sign-In Guide

Secure Authentication

The platform implements a strict Two-Factor Authentication (2FA) standard to safeguard all alumni profiles.

Visual Image CAPTCHA

2. Directory Features & Profile Management

Once logged in, standard alumni can view the yearbook directory and update their personal profile.

The Batchmates Yearbook Directory

Profile Customization & Visual Layouts

3. Administrative Capabilities

Users with administrative privileges (is_admin = 1) have access to the Admin Dashboard:

4. Advanced Security Hardening

The application is hardened according to OWASP Top 10 web security standards:

5. Hugging Face Dataset & State Synchronization

Because Hugging Face Space environments are ephemeral and restart regularly, all application state (databases, keys, and images) is replicated in a private Hugging Face Dataset repository: Sam-max1/recdgp88_data.

Automated Restoration & Crash Suspension (Space Mode)

Command Line Sync Utility

To sync databases between your local environment and the Hugging Face Dataset, use the sync script:

# 1. Sync local databases/keys to Hugging Face Dataset (Upload)
python3 recdgp88_hfdataset_sync.py -fw

# 2. Sync Hugging Face Dataset databases/keys to local machine (Download)
# (Automatically backs up existing local databases to recdgp88/backup/ first)
python3 recdgp88_hfdataset_sync.py -rev

# 3. Create a backup of local databases/keys
python3 recdgp88_hfdataset_sync.py -bkup

# 4. Restore local databases/keys from local backup directory
python3 recdgp88_hfdataset_sync.py -res

Important Warning: To comply with security guidelines, the Excel classmate directory seed file (REC_Durgapur_1988_Directory_V1.0_04Jun26.xlsx) and raw databases MUST NOT be pushed to the Hugging Face Space repository. Database and key replication are handled strictly via the private Dataset repository.