Spotify clone with automatic lyrics, Spotify premium login (+ refresh token) using React
- Spotify login (and auto refresh token)
- Track listing by artist or name
- Lyrics displayed when playing track
- Basic Spotify playback bar is implemented
You need to have installed or own:
- Node.js
- Spotify premium account
If you have a Spotify developer account, you can skip this part
- Login to https://developer.spotify.com
- Create an app (enter name, description, accept rules...)
- Go to "Edit Settings" and in "Redirect URIs", add "http://localhost:3000", then save
- Note somewhere your Client ID and Client Secret from your dashboard
- With the help of your terminal, go to
server
folder - Type
npm i
to install all modules - Create a
.env
file and write:
SPOTIFY_CLIENT_ID=replacethisbyyourclientid
SPOTIFY_CLIENT_SECRET=replacethisbyyourclientsecret
SPOTIFY_REDIRECT_URI=http://localhost:3000
- Save then type
npm run dev
in your terminal - Open a new terminal tab, go to
client
folder - Type
npm i
to install all modules - Create a
.env
file and write:
REACT_APP_SPOTIFY_CLIENT_ID=replacebyyourclientid
REACT_APP_SERVER_URI=http://localhost:3001
- Save then type
npm start
in your terminal - Visit
http://localhost:3000
to go on login page