2.0.0 • Published 4 years ago
giflyst-backend v2.0.0
giflyst-backend
Spotify API Web Auth
Forked from https://github.com/spotify/web-api-auth-examples
How to start
Clone this repository
Install package dependencies using
npm i
Make sure to register application in Spotify developer's app https://developer.spotify.com/dashboard/applications
Setup local environment variable for node application using dotenv
Set your CLIENT_ID and CLIENT_SECRET
On line
108
, FRONTEND_URI should point to the server of your application. If you clone from Giflyst frontend, you should not change anything.When everything is ready, run
npm start
and it will run the backend inhttp://localhost:8888/
Deploy to heroku
- From your command line, create heroku app.
heroku login
heroku create app_name
Create variables in your heroku app. This is how to do it.
Add variables for :
SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET
REDIRECT_URI
FRONTEND_URI
- To deploy to heroku, make sure you have added your application in your own git repository.
git push heroku master
2.0.0
4 years ago