Would You Rather is the project N°2 i realized for the React Nanodegree Course. Please note that this package is still under active MIT License.
Make sure your computer meets the following requirements.
- Node > 10.x
- Yarn > 1.21.x
- Firefox or Google Chrome Navigator
We have few features :
- List the polls
- Answer a poll
- See details of a poll
- Create a Poll
- Login on the application
- See Leaderboard
Firstly, download the project using :
$git clone https://github.com/kemsty2/woudl-you-rather
Install all the dependecies of the client app :
$cd Frontend
$yarn install
This command will install all the required dependecies to run the react client application.
Run webpack live server
$yarn start
To view the application, go to:
http://localhost:3000/
The application is able to manage poll. A poll item contains the following field :
id
(string) - a unique id for a pollauthor
(string) - a id which represent the poll authortimestamp
(int) - which represent the creation date of the polloptionOne
(object) - information about the option One. Number of votes and the textoptionTwo
(object) - information about the option One. Number of votes and the text
First, the user should login to the platform. To log into the platform,
select a user in the user list and click on Sign In
After logging on the application, the list of poll is displayed. You can
- Filter the poll between Unanswered and Answered Poll
To add a poll, Click on Add Poll
Nav Link.
- Edit the optionOne and optionTwo
- Click on Add
To answer a poll,
- Click on a poll
- Select your option
- Click on submit
The Poll Details is displayed.
Click on an answered poll
- The Details of a poll is displayed
To display a leaderboard, click on Leaderboard Nav Item
MIT. Please see the license file for more information.