https://whatwouldyourather.netlify.app/
- Would you rather game logic.
- Get a Random situation pair from server
- See the percentage of people who picked the different situation
- Replay the game
- Select the color theme of your choise.
- Fronend: React, TypeScript, TailwindCSS, Netlify
- Backend: Go, Sqlite, Docker, DigitalOcean
Node.js (LTS recommended) Go Git
git clone https://github.com/karlsb/WouldYouRather.gitcd WouldYouRather/WouldYouRatherFrontendnpm installNavigate to server directory
cd WouldYouRather/WouldYouRatherBackendCreate a .env (it can be empty) file inside the WouldYouRather/WouldYouRatherBackend directory.
You can specify the PORT you want to run the server on in the .env file in the following way:
PORT=8081
Build the server:
go build -o mainnpm run dev./main