A real-time polling and chat application where a teacher can create live questions and students can answer instantly.
Built using Node.js, Express, Socket.IO, MongoDB on the backend and React, Tailwind CSS on the frontend.
- Frontend: https://real-time-polling-system-frontend.vercel.app/
- Backend: https://real-time-polling-system-1.onrender.com/
- Real-time polling using Socket.IO
- Live results update for teacher and students
- Automatic timeout handling (unanswered students are treated as answered)
- Teacher cannot create next question until current one finishes
- Real-time chat between teacher and students
- Students only see live questions (no old questions)
- Teacher disconnect automatically ends the current question
git clone https://github.com/chandankumarm55/Real-Time-Polling-System.git
cd Real-Time-Polling-SystemCreate a .env file inside the server folder:
PORT=5000
NODE_ENV=development
MONGODB_URI=mongodb+srv://chandan:chandan228@cluster0.tvto3to.mongodb.net/Install dependencies and start server:
cd server
npm install
npm run devBackend will run at:
http://localhost:5000
Create a .env file inside the client folder:
VITE_SOCKET_URL=http://localhost:5000
VITE_API_URL=http://localhost:5000/apiInstall dependencies and start frontend:
cd client
npm install
npm run devFrontend will run at:
http://localhost:5173
Chandan Kumar
GitHub: chandankumarm55
If you like this project, feel free to star the repository ⭐