- 📥 Fetch the latest setlist from Setlist.fm for one or more artists.
- 🎧 Automatically create a new Spotify playlist or update an existing one.
- 🔗 Seamless integration with the Spotify Web API.
- 🐳 Docker support for easy setup.
Before running the script, ensure you have the following:
- Node.js installed
- A Spotify Developer Account with access to the Web API
- Setlist.fm API key (Sign up at Setlist.fm)
- Docker installed (optional, for Docker usage)
-
Clone this repository:
git clone https://github.com/francoborrelli/setlistfm-2-spotify.git
-
Navigate to the project directory:
cd setlist-to-spotify-playlist
-
Install dependencies:
yarn install
-
Create a
.env
file with your Spotify and Setlist.fm credentials:SETLIST_API_KEY=your_setlistfm_api_key SPOTIFY_API_CLIENT_ID=your_spotify_client_id SPOTIFY_API_CLIENT_SECRET=your_spotify_client_secret
To run the script, use the following command:
yarn start
You will be prompted to authenticate with Spotify and choose between creating a new playlist or updating an existing one.
If you prefer to run the project using Docker, follow these steps:
-
Build the Docker image:
docker build -t setlistfm-2-spotify .
-
Run the Docker container:
docker run --env-file .env setlistfm-2-spotify
The script will run inside the Docker container, and you'll still need to authenticate with Spotify.
- TypeScript - Type-safe JavaScript
- Node.js - JavaScript runtime
- Setlist.fm API - Fetching setlists
- Spotify Web API - Playlist management
- Docker - Containerization for easy setup
This project is licensed under the MIT License.