This is a web app that lets a user play the “Would You Rather?” game. The game goes like this: A user is asked a question in the form: “Would you rather [option A] or [option B] ?”. Answering "neither" or "both" is against the rules.
In this app, users are able to ask and answer questions, see which questions they have/haven’t answered, see how other people have voted, and see the ranking of users on the leaderboard.
Once the user logs in, the user is able to toggle between his/her answered and unanswered polls on the home page. The polls in both categories are arranged from the most recently created (top) to the least recently created (bottom).
Upon voting in a poll, all of the information of an answered poll is displayed. The user’s response is recorded and clearly visible on the poll details page. Users can only vote once per poll; they are not allowed to change their answer after they’ve voted. When the user comes back to the home page, the polling question appears in the “Answered” column.
This app is the second of two projects required for Udacity's React Nanodegree program.
- Live Demo: https://danggg-would-you-rather.netlify.app/
- React
- Redux
- React Router
- Ant Design
Clone the repository, change directories, and use NPM to install the dependencies.
$ git clone https://github.com/dangvu0502/react-udacity-would-you-rather
$ cd react-udacity-would-you-rather
$ npm install
The project can be run with
npm start
The project can be viewed in the browser at