The place for quickly spotting events for the bands you listen to.
Uses Spotify and Songkick developer APIs.
Express for backend, React for frontend.
- Go to https://developer.spotify.com/ and obtain Client ID and Client Secret API keys.
- Go to https://www.songkick.com/developer and obtain an API key.
- Add a
keys.json
file at/src/server/keys.json
in the following format:
{
"prod": {
"SONGKICK_API_KEY": "<key>",
"SPOTIFY_CLIENT_ID": "<key>",
"SPOTIFY_CLIENT_SECRET": "<key>"
},
"dev": {
"SONGKICK_API_KEY": "<key>",
"SPOTIFY_CLIENT_ID": "<key>",
"SPOTIFY_CLIENT_SECRET": "<key>"
}
}
- In order to set API keys as environment variables in your Heroku project for production, I've made a handy script. Simply run
npm run heroku:setkeys
make server # Runs Express server backend
make client # Runs webpack dev server for React app.
And you're away ๐
- Ensure you have a Heroku account and the Heroku CLI installed, then go to project root.
heroku login
heroku create
heroku buildpacks:set heroku/nodejs
git push heroku master
heroku open
to see your deployed dyno