Skip to content

In the Would You Rather Application, users will be able to answer questions, see which questions they haven’t answered, see how other people have voted, post questions, and see the ranking of users on the leaderboard.

Notifications You must be signed in to change notification settings

CuneytYilmaz/would-you-rather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Would-You-Rather Project

Would You Rather App is 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 app, users will be able to answer questions, see which questions they haven’t answered, see how other people have voted, post questions, and see the ranking of users on the leaderboard.

Quickstart

Install

Clone Would-You-Rather project:

https://github.com/CuneytYilmaz/would-you-rather-app

Install project dependencies via npm:

npm install

Start the development server:

npm start

Pages

  1. Login Page : The person using this application should logging in as an existing user. It can be select from list of users. Once the user logs in, the home page shows.

  1. Home Page : Once the user logs in, the user can be able to toggle between his/her answered and unanswered polls on the home page, which is located at the root. The polls in both categories are arranged from the most recently created (top) to the least recently created (bottom). The unanswered questions show by default, and the name of the logged in user is visible on the page.

  1. Question Page : When a poll is clicked on the home page, the following is shown:

  1. Result Page : 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 can't be allowed to change their answer after they’ve voted -- no cheating allowed! When the user comes back to the home page, the polling question is in the “Answered” column.

  1. New Question Page : It would be no fun to vote in polls if we couldn’t post our own questions! The form for posting new polling questions is available in this page. The application shows the text “Would You Rather” and have a form for creating two options. Upon submitting the form, a new poll is created and the new polling question is in the correct category on the home page.

  1. Leader Board Page : Users are ordered in descending order based on the sum of the number of questions they’ve asked and the number of questions they’ve answered. The more questions you ask and answer, the higher up you move.

Contributing

Would-You-Rather-App was originally written and maintaned by Cuneyt Yilmaz. Many improvements and bugfixes were contributed by the open source community.

License

MIT. Please see the license file for more information.

About

In the Would You Rather Application, users will be able to answer questions, see which questions they haven’t answered, see how other people have voted, post questions, and see the ranking of users on the leaderboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published