Real-Time Polling App with WebSockets
Build an app where a host creates live polls and participants vote in real time, with results updating instantly across all connected clients via WebSockets. Learners practice typed WebSocket message contracts, shared types between client and server, and real-time state synchronization.
- Estimate
- ~11h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
Socket.IO · React · Express
Project roadmap
- 01
Define shared event types
~1.5hDefine TypeScript types for poll events shared between client and server.
- 02
Build the server with Socket.IO
~2hSet up an Express server with Socket.IO handling poll rooms.
- 03
Build the host UI
~2hBuild a UI for creating a poll, opening it for votes, and closing it.
- 04
Build the participant voting UI
~2hBuild a UI showing live-updating vote results as they come in.
- 05
Handle reconnection and duplicate votes
~2hPrevent duplicate votes and handle client reconnection gracefully.
- 06
Write an end-to-end demo test
~1.5hSimulate a host and multiple participants in an automated test of a poll room.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack