Would You Rather? is a game about choice. Log in, answer questions and make your own questions!
The user can navigate through the questions one by one. All questions are sorted by timestamp and the user is able to filter them in the navigation bar. Click the filter button next to the user profile and see for yourself!
When the user applies their filter, they will be redirected and see their new filtered questions.
- Install yarn.
- Navigate to the repo.
- Run
yarn install
. - Run
yarn start
.
To run the unit tests, run yarn run test
. A menu will open and you will be able to select which tests you want to run.
While you're running the server, feel free to adjust the files. The server files will be updated automatically and you'll see the changes in the browser.
When you commit the code will be built and deployed automatically. This git hook can be configured in package.json
.
- Configure your GitHub site in
package.json
. - Run
yarn run deploy
to deploy the site to GitHub Pages.
Guide (We're using HashRouter instead of BrowserRouter to get GitHub routing to work)
You can view the app here.