This is the final assessment project for Udacity's React-Redux course, which is a part of the React Nanodegree program.
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.
- React
- Redux
- React Router
- React-Bootstrap
- install all project dependencies with
npm install
- start the app with with
npm start
( Runs the app in the development mode.) - Open http://localhost:3000 to view it in the browser.
This project uses a fake backend, so the state will not persit across refreshes.
This project was bootstrapped with Create React App. You can find more information on how to perform common tasks here.