King Ice Quiz Logo # ๐ŸงŠ King Ice Quiz **Full-Stack Quiz & Social Learning Platform** A production-grade web application combining interactive quizzes with social learning. Features real-time chat, leaderboards, user profiles, and comprehensive admin dashboard. Live for 6+ months. [![React](https://img.shields.io/badge/React-18-61DAFB?logo=react)](https://react.dev/) [![Node.js](https://img.shields.io/badge/Node.js-18%2B-339933?logo=nodedotjs)](https://nodejs.org/) [![MongoDB](https://img.shields.io/badge/MongoDB-Atlas-47A248?logo=mongodb)](https://www.mongodb.com/atlas) [![Express](https://img.shields.io/badge/Express-4-000000?logo=express)](https://expressjs.com/) [![Socket.io](https://img.shields.io/badge/Socket.io-Real--time-010101?logo=socketdotio)](https://socket.io/) [![JWT](https://img.shields.io/badge/JWT-Auth-000000?logo=jsonwebtokens)](https://jwt.io/) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

View Live Demo ยท Features ยท Tech Stack ยท Getting Started


๐Ÿš€ Live Demo

Service URL Status
Frontend (Vercel) king-ice-quiz.vercel.app Vercel
Backend API (Render) king-ice-quiz-app.onrender.com Render

โœจ Features

๐ŸŽฏ Quiz System

  • Multiple Categories: Various quiz topics with Easy/Medium/Hard difficulty levels
  • Timed Quizzes: Countdown timers with automatic submission
  • Randomized Questions: Optional question shuffling for varied attempts
  • Smart Scoring: Passing score requirements with max attempts enforcement
  • Real-time Progress: Live progress tracking during quiz taking
  • Question Management: Full CRUD operations for quiz questions

๐Ÿ’ฌ Real-Time Chat

  • WebSocket Communication: Instant messaging powered by Socket.io
  • Category Rooms: Dedicated chat rooms for each quiz category
  • Direct Messaging: Private conversations between users
  • Online Presence: Real-time user online/offline indicators
  • Message History: Persistent chat history with MongoDB storage
  • Chat Moderation: Report system and admin moderation tools

๐Ÿ“Š Results & Analytics

  • Detailed Breakdown: Answer-by-answer review with correct answers
  • Performance Charts: Visual analytics with Chart.js integration
  • Leaderboards: Global and category-specific rankings
  • Achievement System: Badges and trophies for milestones
  • Quiz History: Complete record of past quiz attempts
  • Progress Tracking: Track improvement over time

๐Ÿ‘ค User Profiles

  • Customizable Profiles: Bio, avatar, and social links
  • Photo Upload: Profile picture upload via Cloudinary
  • Activity Feed: Recent quiz attempts and achievements
  • Achievement Showcase: Display earned badges and trophies
  • User Search: Find and connect with other learners

๐Ÿ› ๏ธ Admin Dashboard

  • Quiz Management: Create, edit, and delete quizzes
  • User Management: View and manage user accounts
  • Content Moderation: Monitor and moderate chat content
  • Analytics Overview: System-wide statistics and reports
  • Bulk Operations: Efficient management of multiple items

๐Ÿ”’ Security

  • JWT Authentication: Access and refresh token rotation
  • bcrypt Hashing: Secure password storage
  • Rate Limiting: API protection (100 requests per 15 minutes)
  • Input Sanitization: XSS and NoSQL injection prevention
  • Helmet.js: Security headers (CSP, HSTS, XSS protection)
  • AES Encryption: Client-side encryption for sensitive data
  • Role-Based Access: User and Admin permission levels

๐Ÿ“ฑ User Experience

  • Fully Responsive: Works on mobile, tablet, and desktop
  • Dark/Light Theme: Toggle with persistent preference
  • PWA Support: Installable on mobile devices
  • Keyboard Accessible: Accessibility-focused design

๐Ÿ›  Tech Stack

Frontend

Technology Purpose
React UI Framework
React Router Client-side Routing
Socket.io Client Real-time Communication
Chart.js Data Visualization
Axios HTTP Client
CSS3 Styling
crypto-js Client-side Encryption
Cloudinary Image Upload

Backend

Technology Purpose
Node.js Runtime
Express Web Framework
MongoDB Cloud Database
Mongoose ODM
Socket.io WebSocket Server
JWT Authentication
bcrypt Password Hashing
Multer File Upload

DevOps & Services

Service Purpose
Vercel Frontend Hosting
Render Backend Hosting
MongoDB Atlas Cloud Database
Cloudinary Image Hosting
GitHub Version Control

๐Ÿš€ Getting Started

Prerequisites

  • Node.js v18.0 or higher
  • MongoDB Atlas account (free tier)
  • npm v9 or higher

Quick Start

git clone https://github.com/Kingice97/King-Ice-Quiz.git
cd King-Ice-Quiz

# Backend
cd BACKEND
npm install
npm start

# Frontend (new terminal)
cd FRONTEND
npm install
npm start 

Frontend: http://localhost:3000 | Backend: http://localhost:5000


๐Ÿ“„ License

MIT License


Built with ๐Ÿ’™ by King Ice

Built With

Share this project:

Updates