Skip to content

loginesta/reactnd-project-would-you-rather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Would You Rather Project

Would You Rather is a web application 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 application, users will be able to see all the questions posted, which will be presented separatedly. On the one hand, there will be the questions the user already answered and, on the other hand, the ones the user haven't answered.

Screenshot

For each question the user will have access to the question details. If the question has not been answered by the user, the two options will be displayed in order to vote for one of them. Once the question is answered, the user will also be able to see the number of people and the percentage of people who voted for both options.

Screenshot

A part from that, the user will be able to create new questions, always providing two different options. The new questions will be listed in the home page with the rest of unanswered questions.

Screenshot

Finally, the user will be able to see the ranking of users on the leaderboard. All the existing users are listed there according to their score, which is based on the sum of the number of questions answered and the number of questions asked.

Screenshot

Installation

To get started right away:

  • install all project dependencies with npm install
  • start the server with npm start

Dependencies

This project was bootstrapped with Create React App. And implemented using React.

Important

As a requirement, users will need to log in to access to the different pages of this application. In this sense, a way to impersonate an existing user is provided with the application.

Acknowledgements

This is a project for Udacity's React Fundamentals course. In this sense, Udacity provided a started code (https://github.com/udacity/reactnd-project-would-you-rather-starter) that consisted of a _DATA.js file, which represents a fake database and contains methods that let the developers access the data. The README file of this project outlines how the data is stored and details the methods to access the database.

About

Project "Would You Rather" - Udacity's React Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published