A React-based web application for managing TEDx innovation challenges with real-time team tracking, location-based progression, and role-based access control.
- Google Sign-in integration
- Role-based routing (Super Admin, Admin, Candidate)
- Automatic redirection based on user role
- 5 Location Progression: Teams progress through 5 different locations in a circular pattern
- Password Protection: Each location has a unique password known to location admins
- Video Integration: 1-minute videos at each location
- 5-Minute Timer: Teams have 5 minutes to complete challenges
- Time-Based Scoring: Fair scoring system based on completion time
- Real-Time Updates: Live scoreboard and team progress tracking
- Event Stage Control: Start, pause, resume, and end events
- Real-Time Monitoring: Live dashboard with team statistics
- Scoreboard Management: Track team performance and scores
- Location Management: View and manage all challenge locations
- System Analytics: Advanced analytics and reporting
- Database Operations: Export data, backup system, reset teams
- System Management: Update passwords, modify locations, emergency controls
- Frontend: React 19.1.0
- Styling: Tailwind CSS 3.4.1
- Authentication: Firebase Authentication
- Database: Firestore (Firebase)
- Routing: React Router DOM 7.7.0
- Icons: Font Awesome 6.0.0
src/
โโโ components/ # Reusable UI components
โ โโโ Loading.js # Loading spinner component
โโโ context/ # React context providers
โ โโโ AuthContext.js # Authentication context
โโโ pages/ # Main application pages
โ โโโ Login.js # Google sign-in page
โ โโโ Candidate.js # Main game interface
โ โโโ Admin.js # Admin dashboard
โ โโโ SuperAdmin.js # Super admin dashboard
โโโ services/ # API and service functions
โ โโโ firebase.js # Firebase configuration
โ โโโ gameService.js # Game logic and data management
โโโ App.js # Main application component
- Node.js (v16 or higher)
- npm or yarn
- Firebase project with Authentication and Firestore enabled
# Navigate to project directory
cd TEDxIITGandhinagar-26-Orientation
# Install dependencies
npm install
# Start development server
npm start- Create a Firebase project at Firebase Console
- Enable Authentication with Google Sign-in
- Enable Firestore Database
- Update
src/services/firebase.jswith your Firebase config:
const firebaseConfig = {
apiKey: "YOUR_API_KEY_HERE",
authDomain: "YOUR_PROJECT_ID.firebaseapp.com",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_PROJECT_ID.appspot.com",
messagingSenderId: "YOUR_SENDER_ID",
appId: "YOUR_APP_ID"
};Create the following Firestore collections:
{
id: "team_1",
name: "Team Alpha",
status: "available",
assigned: false,
currentLocation: 1,
totalScore: 0,
lastUpdated: timestamp
}{
email: "superadmin@example.com"
}{
email: "admin@example.com"
}{
id: "stage",
stage: "waiting", // waiting, active, paused, ended
startTime: timestamp,
updatedAt: timestamp
}{
teamId: "team_1",
location: 1,
score: 150,
timeTaken: 180,
timestamp: timestamp
}- Sign In: Use Google account to sign in
- Team Assignment: Automatically assigned to an available team
- Location Progression:
- Enter location password
- Watch 1-minute video
- Complete challenge within 5 minutes
- Submit answer (success/failure)
- Progress to next location
- Final Destination: All teams converge at Panchangan for final celebration
- Event Control: Start, pause, or end the event
- Live Monitoring: View real-time team progress and scores
- Location Management: Access location passwords and tasks
- Scoreboard: Track team performance
- System Overview: Complete system statistics
- Analytics: Detailed location and team analytics
- System Management: Database operations and system settings
- Advanced Controls: Emergency controls and system modifications
The game includes 6 locations:
- Jasubhai Hall - Starting point
- Rangmanch - Knowledge challenge
- New PC Building - Creativity challenge
- Academic Block 10 - Team collaboration
- Sports Complex - Final presentation
- Panchangan - Grand finale (common destination)
Each location has:
- Unique password
- Specific task description
- Color-coded interface
- Time-based scoring
- Base Score: 100 points per successful completion
- Time Bonus: Faster completion = more points
- Perfect Bonus: 50 extra points for completion within 60 seconds
- Formula:
Base Score + Time Bonus + Perfect Bonus
- Role-based access control
- Password-protected locations
- Real-time authentication
- Secure Firebase integration
- Session management
npm run buildnpm install -g firebase-tools
firebase login
firebase init hosting
firebase deploy- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is created for TEDxIITGandhinagar. All rights reserved.
For technical support or questions, please contact the development team.
TEDxIITGandhinagar - Innovation Challenge Platform Empowering innovation through technology