This is my first attempt at building Stupid Software.
To run the app, execute the following command:
npm run devso the whole idea is to make a fun and gimmicky tool to do comedy with. the idea is the following:
The app is composed of 2 views:
indexresults
first of all host the app somewhere.
the results page should be setup to be cast behind the speaker in a screen or though a video projector, and it shows a political compass with a symbol in the origin, middle, (0,0), etc.
the index page should be visited by users on their phones or whatever device they want to visit it in. within it, they'll see the same thing the results page shows but with a catch, they can drag the symbol in the middle to wherever in the compass and that movement vector will be cast as a vote and an average will be displayed in the results page.
- There is a simple route that tracks "voting" data. Note that the information is not persisted; the "database" is on line 7 of the
vote.tsfile. - When viewing
index, Users can drag whatever is in the middle to a section of the compass, which counts as casting a vote. - Vote average is displayed on the
resultspage. - This allows the users to express their thoughts on the political leanings of the speaker.
- The idea is to have the
resultspage update in "realtime". For practical purposes, the page polls every 5 seconds.