The project has two parts, an API component and a frontend.
Create a .env file within api/ with the following
SPOTIFY_CLIENT_ID={redacted}
SPOTIFY_CLIENT_SECRET={redacted}
SPOTIFY_REFRESH_TOKEN={redacted}
then
cd api/
npm install #first time only or after updating dependencies
npm run startRuns locally at http://localhost:7001
Create a .env file within / with the following
REACT_APP_API_ENDPOINT=http://localhost:7001/currentlyPlaying/
then
npm install #first time only or after updating dependencies
npm run startRuns locally at http://localhost:3000
The frontend can generate a static version using the following:
npm run buildThe files are created in the build/ directory.