Skip to content

martiriera/discogs-spotify

Repository files navigation

Discogs to Spotify Playlist Converter

This project is a web application that converts a Discogs URL into a Spotify playlist. It leverages Go for the backend logic and server-side rendering, enhanced with HTMX for interactivity and styled using Tailwind CSS.

image

Usage

  1. Login to Spotify. Your playlist will be created automatically in your account.

  2. Introduce a Collection, Wantlist or List URL from Discogs.

    Examples of valid URLs:

    • Collection: https://www.discogs.com/es/user/username/collection
    • Wantlist: https://www.discogs.com/es/wantlist?user=username
    • List: https://www.discogs.com/es/lists/SomeList/1545836
  3. Enjoy the music.

Tech Stack

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/discogs-to-spotify.git
    cd discogs-to-spotify
  2. Set up environment variables:

    Create a .env file with the following keys:

    SPOTIFY_CLIENT_ID=your_spotify_client_id
    SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
    SPOTIFY_REDIRECT_URI=matches_the_settings_on_spotify_app (e.g. http://localhost:8080/auth/callback)
    SESSION_KEY=random_secret_for_gorilla_session
    PORT=optionally_set_the_port (8080 by default)

    2.1. ⚠️ Don't forget to set the Redirect URI on your Spotify app settings.

  3. Install dependencies:

    go mod tidy
  4. Run the application:

    go run main.go
  5. Open your browser and navigate to http://localhost:8080.

Contributing

Contributions and feedback are welcome! Feel free to submit a pull request or open an issue for discussion. (🚧 CONTRIBUTE.md WIP 🚧)

License

This project is licensed under the MIT License. See the LICENSE file for details.


Happy playlisting! 🎵

About

From Discogs to your Spotify in seconds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages