{"id":21076337,"url":"https://github.com/rapter1990/udacity-react-would-you-rather","last_synced_at":"2026-05-07T04:34:30.905Z","repository":{"id":124091969,"uuid":"323586284","full_name":"Rapter1990/Udacity-React-Would-you-rather","owner":"Rapter1990","description":"Udacity React Would you rather","archived":false,"fork":false,"pushed_at":"2021-01-05T16:10:43.000Z","size":2304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T03:45:02.816Z","etag":null,"topics":["react","udacity","udacity-nanodegree"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rapter1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-22T09:57:01.000Z","updated_at":"2021-03-15T21:27:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4c3a5cb-e42d-4d0e-b586-6854ba533896","html_url":"https://github.com/Rapter1990/Udacity-React-Would-you-rather","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rapter1990/Udacity-React-Would-you-rather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FUdacity-React-Would-you-rather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FUdacity-React-Would-you-rather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FUdacity-React-Would-you-rather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FUdacity-React-Would-you-rather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rapter1990","download_url":"https://codeload.github.com/Rapter1990/Udacity-React-Would-you-rather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FUdacity-React-Would-you-rather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005922,"owners_count":26083997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","udacity","udacity-nanodegree"],"created_at":"2024-11-19T19:27:53.254Z","updated_at":"2025-10-11T02:14:42.534Z","avatar_url":"https://github.com/Rapter1990.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Would You Rather Project\n\nThis is the starter code for the final assessment project for Udacity's React \u0026 Redux course.\n\nThe `_DATA.js` file represents a fake database and methods that let you access the data. The only thing you need to edit in the ` _DATA.js` file is the value of `avatarURL`. Each user should have an avatar, so you’ll need to add the path to each user’s avatar.\n\nUsing the provided starter code, you'll build a React/Redux front end for the application. We recommend using the [Create React App](https://github.com/facebook/create-react-app) to bootstrap the project.\n\n## Data\n\nThere are two types of objects stored in our database:\n\n* Users\n* Questions\n\n### Users\n\nUsers include:\n\n| Attribute    | Type             | Description           |\n|-----------------|------------------|-------------------         |\n| id                 | String           | The user’s unique identifier |\n| name          | String           | The user’s first name  and last name     |\n| avatarURL  | String           | The path to the image file |\n| questions | Array | A list of ids of the polling questions this user created|\n| answers      | Object         |  The object's keys are the ids of each question this user answered. The value of each key is the answer the user selected. It can be either `'optionOne'` or `'optionTwo'` since each question has two options.\n\n### Questions\n\nQuestions include:\n\n| Attribute | Type | Description |\n|-----------------|------------------|-------------------|\n| id                  | String | The question’s unique identifier |\n| author        | String | The author’s unique identifier |\n| timestamp | String | The time when the question was created|\n| optionOne | Object | The first voting option|\n| optionTwo | Object | The second voting option|\n\n### Voting Options\n\nVoting options are attached to questions. They include:\n\n| Attribute | Type | Description |\n|-----------------|------------------|-------------------|\n| votes             | Array | A list that contains the id of each user who voted for that option|\n| text                | String | The text of the option |\n\nYour code will talk to the database via 4 methods:\n\n* `_getUsers()`\n* `_getQuestions()`\n* `_saveQuestion(question)`\n* `_saveQuestionAnswer(object)`\n\n1) `_getUsers()` Method\n\n*Description*: Get all of the existing users from the database.  \n*Return Value*: Object where the key is the user’s id and the value is the user object.\n\n2) `_getQuestions()` Method\n\n*Description*: Get all of the existing questions from the database.  \n*Return Value*: Object where the key is the question’s id and the value is the question object.\n\n3) `_saveQuestion(question)` Method\n\n*Description*: Save the polling question in the database.  \n*Parameters*:  Object that includes the following properties: `author`, `optionOneText`, and `optionTwoText`. More details about these properties:\n\n| Attribute | Type | Description |\n|-----------------|------------------|-------------------|\n| author | String | The id of the user who posted the question|\n| optionOneText| String | The text of the first option |\n| optionTwoText | String | The text of the second option |\n\n*Return Value*:  An object that has the following properties: `id`, `author`, `optionOne`, `optionTwo`, `timestamp`. More details about these properties:\n\n| Attribute | Type | Description |\n|-----------------|------------------|-------------------|\n| id | String | The id of the question that was posted|\n| author | String | The id of the user who posted the question|\n| optionOne | Object | The object has a text property and a votes property, which stores an array of the ids of the users who voted for that option|\n| optionTwo | Object | The object has a text property and a votes property, which stores an array of the ids of the users who voted for that option|\n|timestamp|String | The time when the question was created|\n\n4) `_saveQuestionAnswer(object)` Method\n\n*Description*: Save the answer to a particular polling question in the database.\n*Parameters*: Object that contains the following properties: `authedUser`, `qid`, and `answer`. More details about these properties:\n\n| Attribute | Type | Description |\n|-----------------|------------------|-------------------|\n| authedUser | String | The id of the user who answered the question|\n| qid | String | The id of the question that was answered|\n| answer | String | The option the user selected. The value should be either `\"optionOne\"` or `\"optionTwo\"`|\n\n## Contributing\n\nThis repository is the starter code for *all* Udacity students. Therefore, we most likely will not accept pull requests. For details, check out [CONTRIBUTING.md](https://github.com/udacity/reactnd-project-would-you-rather-starter/blob/master/CONTRIBUTING.md).\n\n\n## Live Demo\n[Click Live Demo](https://would-you-rather-udacity-project.netlify.app) \n\n## Screenshoots\n\n\u003cdetails\u003e\n\u003csummary\u003eClick here to show the screenshoots of project\u003c/summary\u003e\n    \u003cdiv\u003e\n        \u003cp\u003eScreenShoot 1 - Login Page\u003c/p\u003e\n        \u003cimg src='screenshots/screenshot1.PNG'\u003e\n        \u003cbr\u003e\n        \u003cp\u003eScreenShoot 2 - Dashboard Page with showing Unanswered Questions\u003c/p\u003e\n        \u003cimg src='screenshots/screenshot2.PNG'\u003e\n        \u003cbr\u003e\n        \u003cp\u003eScreenShoot 3 - Dashboard Page with showing Answered Questions\u003c/p\u003e\n        \u003cimg src='screenshots/screenshot3.PNG'\u003e\n        \u003cbr\u003e\n        \u003cp\u003eScreenShoot 4 - Creating Question Page\u003c/p\u003e\n        \u003cimg src='screenshots/screenshot4.PNG'\u003e\n        \u003cbr\u003e\n        \u003cp\u003eScreenShoot 5 - Leaderboard Page\u003c/p\u003e\n        \u003cimg src='screenshots/screenshot5.PNG'\u003e\n    \u003c/div\u003e\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fudacity-react-would-you-rather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapter1990%2Fudacity-react-would-you-rather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fudacity-react-would-you-rather/lists"}