Skip to content

Latest commit

 

History

History
100 lines (67 loc) · 2.67 KB

README.md

File metadata and controls

100 lines (67 loc) · 2.67 KB

🎶 Setlist.fm to Spotify 🎧

This TypeScript-based Node.js script fetches the latest setlist from one or multiple artists using the Setlist.fm API and imports it into a Spotify playlist. You can choose to create a new playlist or update an existing one. The Spotify integration is powered by the Spotify Web API.

✨ Features

  • 📥 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.

🚀 Getting Started

Prerequisites

Before running the script, ensure you have the following:

🔧 Installation

  1. Clone this repository:

    git clone https://github.com/francoborrelli/setlistfm-2-spotify.git
  2. Navigate to the project directory:

    cd setlist-to-spotify-playlist
  3. Install dependencies:

    yarn install
  4. 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

▶️ Usage

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.

🐳 Docker Setup

If you prefer to run the project using Docker, follow these steps:

  1. Build the Docker image:

    docker build -t setlistfm-2-spotify .
  2. 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.

🛠️ Built With

📝 License

This project is licensed under the MIT License.