Currently seeking Frontend Software Engineering roles
You need a Spotify Premium account for the project to work properly and request an access token. Grab the Spotify client ID and client secret from your dashboard. You need this to set the VITE_CLIENT_ID and VITE_CLIENT_SECRET in step 3 of Getting Started below.
How to get a local copy up and running
- Clone the repo
git clone https://github.com/lawsonhung/SpotifyCloneFrontEnd.git- Install NPM packages
npm i- Create a
.envin the root directory and set theVITE_REACT_APP_BASE_URLandVITE_PRODUCTION_BACKEND_API_BASE_URL. YourVITE_CLIENT_ID(Spotify client ID) andVITE_CLIENT_SECRET(Spotify client secret) goes here as well.
Make a GET request with your access token tohttps://api.spotify.com/v1/meto get your Spotify ID
The default for a Vite React app is probablyhttp://localhost:5173/
The default backend API is usuallyhttp://localhost:3000/
touch .envVITE_REACT_APP_BASE_URL=REACT_APP_URL_HERE
VITE_PRODUCTION_BACKEND_API_BASE_URL=BACKEND_URL_HERE
VITE_CLIENT_ID=SPOTIFY_CLIENT_ID_HERE
VITE_CLIENT_SECRET=SPOTIFY_CLIENT_SECRET_HERE
VITE_MY_SPOTIFY_ID=YOUR_SPOTIFY_ID_HERE- Run the project
devcommand
npm run dev



