This app was built to demonstrate the use case of React, React-Router, Socket.IO, Webpack, Yarn and Hot Reloading.
This app facilitates a polling app, where a speaker can ask any question and all of the attendees can vote for their answer. There is a separate board which keeps update itself to draw a pie chart based on the polls.
All this is happening in real time (thanks to Socket.IO and React's reactive nature).
There are currently 3 routes defined:
- /
- /board
- /audience
/
route is the default route which shows a joining form and some links to join as a presenter or to display the board.
/board
route is where all the polls are actively monitored and rendered in the pie chart.
/audience
route is where all the attendees can see the question and pick the one.
There is one more special route called *
route. It matches to 404 Error
.
- Install
yarn
. You can also usenpm
as this is a standardpackage.json
file project. - Execute
yarn
. - Execute
npm start
.