Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arindam200/spotify-playlist-generator
https://github.com/arindam200/spotify-playlist-generator
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/arindam200/spotify-playlist-generator
- Owner: Arindam200
- Created: 2024-07-03T19:39:07.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T14:47:33.000Z (4 months ago)
- Last Synced: 2024-07-08T18:34:34.417Z (4 months ago)
- Language: EJS
- Homepage: https://spotify-playlist-generator-five.vercel.app
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify Playlist Generator
The Spotify Playlist Generator is a web application that allows users to create custom playlists based on their favorite artists and moods. The application leverages the Spotify Web API to search for artists, generate track recommendations, and save playlists directly to the user's Spotify account.
## Features
- **User Authentication**: Users can log in using their Spotify account.
- **Artist Search**: Users can search for their favorite artists.
- **Mood-Based Recommendations**: Users can select a mood to get track recommendations.
- **Playlist Creation**: Users can create and save playlists to their Spotify account.
- **Track Information**: Displays track details including name, album, artists, duration, and external Spotify link.## Installation
1. **Clone the repository**:
```bash
git clone https://github.com/Arindam200/spotify-playlist-generator.git
cd spotify-playlist-generator
```2. **Install dependencies**:
```bash
npm install
```3. **Set up environment variables**:
Create a `.env` file in the root directory and add your Spotify API credentials:
```env
SPOTIFY_CLIENT_ID=Your_Spotify_Client_ID
SPOTIFY_CLIENT_SECRET=Your_Spotify_Client_Secret
SPOTIFY_REDIRECT_URI=http://localhost:3000/callback
ARCJET_KEY=Your_Arcjet_Key
ARCJET_ENV=development
SESSION_SECRET=Your_Session_Secret
```4. **Run the application**:
```bash
npm run dev
```5. **Open your browser**:
Navigate to `http://localhost:3000` to access the application.
## Usage
1. **Login**:
- Click on the "Login" button to authenticate with your Spotify account.2. **Generate Playlist**:
- Enter the name of your favorite artist and select a mood.
- Click on "Generate Playlist" to get track recommendations.3. **Save Playlist**:
- Enter a name for your new playlist.
- Click on "Save Playlist to Spotify" to save the playlist to your Spotify account.## License
This project is licensed under the ISC License.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.