- Node.js and npm installed
- Spotify Developer account
- A registered Spotify application
- Go to the Spotify Developer Dashboard and log in.
- Click on Create an App.
- Fill in the required details and click Create.
- Note down the Client ID and Client Secret from the app details page.
- Add a Redirect URI (
http://localhost:8888/callback
) in the app settings.
git clone https://github.com/yourusername/spotify-top-artists-viewer.git
cd spotify-top-artists-viewer
npm install
Create a file named .env in the root directory and add your Spotify application's Client ID, Client Secret, and Redirect URI:
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
REDIRECT_URI=http://localhost:8888/callback
npm start
The application will open in your default web browser at (http://localhost:8888).