A react web app that allows user to create Would You Rather A or B question, answer questions and compete with other users. Win by creating and answering more questions. This project uses redux to manage state, thunk to handle async actions, Auth0 for account authentication and includes only front end work.
- Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
- You can choose to log in with the credentials provided in _DATA.js or create your own one (see Auth0 connection setup below) .
- Once logged in, you have access to /home, /add, /leaderboard, and /profile pages as well as question answering/result page through clicking any of the questions on the home page.
- Answer any questions in the New Questions section, and view the result once the answer is submitted.
- View the question result by navigating to any of the Done Questions section.
- All questions should be listed reverse-chronologically.
- Go to New page to add a new Would You Rather question.
- Go to Profile page to view all of your questions.
- Log out by clicking the Log Out link.
- You will need to use your own Auth0 account and get Domain and Client ID by creating a new single page application.
- Create a .env file that includes the following
REACT_APP_API_SERVER_URL=
http://localhost:6060`REACT_APP_AUTH0_DOMAIN=
[Your Domain]REACT_APP_AUTH0_CLIENT_ID=
[Your Client ID]REACT_APP_AUTH0_CALLBACK_URL=
http://localhost:3000/callback
- There are 18 tests. They should be all pass.