A guessing game where the player must guess if Spotify songs are more or less popular than one another.
- Install Go
- Get packages
go get -vinsrc/api - Create a Spotify app
- Set environment variables (add to
rcfile if desired)export SPOTIFY_HIGHER_LOWER_FRONTEND=<URL of Frontend>- For local development, usehttp://localhost:5000export SPOTIFY_HIGHER_LOWER_ID=<Spotify Client ID>- The client ID of your Spotify appexport SPOTIFY_HIGHER_LOWER_SECRET=<Spotify Client Secret>- The client secret of your Spotify app
- Install npm
- Get node modules
npm installinsrc/frontend - In src/main.ts, set
requestUri: <API URI>- For local development, usehttp://localhost:8000/random
cd src/api
go run main.go
cd src/frontend
npm run dev
cd src/api
go build main.go
cd src/frontend
npm run build
