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 SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET in step 3 of Getting Started below.
Make sure you add the /auth/callback endpoint to the Redirect URIs in the Spotify dashboard. For example, assuming you're using PORT 3000, the URI you would add is http://127.0.0.1:3000/auth/callback
How to get a local copy up and running
- Clone the repo
git clone https://github.com/lawsonhung/SpotifyCloneBackEnd.git- Install NPM packages
npm i- Create a
.envin the root directory and set thePORTandMONGO_URI. YourSPOTIFY_CLIENT_IDandSPOTIFY_CLIENT_SECRETgoes here as well
touch .envPORT=PORT_GOES_HERE
MONGO_URI=YOUR_MONGODB_URI_HERE
SPOTIFY_CLIENT_ID=YOUR_CLIENT_ID_HERE
SPOTIFY_CLIENT_SECRET=YOUR_SECRET_HERE
- Compile TypeScript
npx tsc- Run the project
devcommand
npm run dev