A web application that displays your top Spotify artists and provides direct links to their merchandise stores.
- Spotify authentication
- Display of top 10 artists
- Direct links to artist merchandise stores
- Responsive design
- Modern UI with custom CSS
-
Clone the repository
-
Install dependencies:
npm install
-
Create a Spotify Developer account and register your application:
- Go to Spotify Developer Dashboard
- Sign in or create an account
- Click "Create App"
- Fill in the app details (name, description, website, etc.)
- Accept the terms and click "Save"
- Once created, you'll see your Client ID on the app dashboard
- Click "Edit Settings"
- Add
http://:5174/callbackto the Redirect URIs - Save the changes
-
Update the
.envfile in the root directory with your Spotify credentials:VITE_SPOTIFY_CLIENT_ID=your_actual_client_id_here VITE_REDIRECT_URI=http://localhost:5174/callbackReplace
your_actual_client_id_herewith the Client ID from your Spotify Developer Dashboard. -
Start the development server:
npm run dev
- Click "Login with Spotify" to authenticate
- View your top artists
- Click "View Merch Store" to visit an artist's merchandise store
If you encounter an "INVALID_CLIENT" error:
- Make sure you've correctly copied your Client ID from the Spotify Developer Dashboard
- Ensure the Redirect URI in your
.envfile matches exactly what you've added to your Spotify app settings - Check that your Spotify app is properly set up with the correct permissions
- React
- TypeScript
- Vite
- Spotify Web API