Skip to content

ZadenRB/spotify-higher-lower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-higher-lower

A guessing game where the player must guess if Spotify songs are more or less popular than one another.

Setup & Prerequisites

API

  1. Install Go
  2. Get packages go get -v in src/api
  3. Create a Spotify app
  4. Set environment variables (add to rc file if desired)
    1. export SPOTIFY_HIGHER_LOWER_FRONTEND=<URL of Frontend> - For local development, use http://localhost:5000
    2. export SPOTIFY_HIGHER_LOWER_ID=<Spotify Client ID> - The client ID of your Spotify app
    3. export SPOTIFY_HIGHER_LOWER_SECRET=<Spotify Client Secret> - The client secret of your Spotify app

Frontend

  1. Install npm
  2. Get node modules npm install in src/frontend
  3. In src/main.ts, set requestUri: <API URI> - For local development, use http://localhost:8000/random

Running

Running the API

cd src/api
go run main.go

Running the Frontend

cd src/frontend
npm run dev

Building

Building the API

cd src/api
go build main.go

Building the Frontend

cd src/frontend
npm run build

About

A guessing game of which song on Spotify is more popular.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors