A simple Express.js backend to handle authentication and API requests for the Spotify Frontend Clone project.
-
Clone the repository: https://github.com/hmsayar/spoti-backend.git
-
Change to the project directory: cd spotify-backend
-
Create a
.env
file in the root directory with the following variables:CLIENT_ID=<spotify_client_id> CLIENT_SECRET=<spotify_client_secret> FRONT_URI=http://localhost:5173 RE_URI=http://localhost:4000/callback REXP=/.localhost:5173/
-
Install dependencies: npm install
-
Start the development server: npm start
-
The backend will be running on
http://localhost:4000
.