node v14.*
yarn 1.22.*
-
Clone the app from Github
-
Go to https://developer.spotify.com and create a project to get a client id and a secret id.
-
Create a .env file in the root of client folder and add client id and root URL to it.
REACT_APP_AUTH_URL=https://accounts.spotify.com/authorize REACT_APP_CLIENT_ID=
-
Create a .env file in the root of server folder and add client id, secret id and genius access token to it.
clientId= clientSecret= GENIUS_ACCESS_TOKEN=
-
Genius access token can be created from https://genius.com/api-clients
yarn install
yarn run devstart
yarn install
yarn start
- After starting server and client, goto localhost:3000
- Click login with Spotify.
- Enter your spotify login details and submit.
- If successfull, you will be redirected to the client app again.
- Now you are successfully logged in.