Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.17 KB

File metadata and controls

65 lines (50 loc) · 2.17 KB

SpotTransfer

Overview

SpotTransfer lets you instantly migrate any Spotify playlist to YouTube Music—no manual copy-pasting needed.

Quick Start

Prerequisites:

  • Python 3.8+
  • Node.js 14+ (or pnpm)
  • Spotify Developer account (client ID & secret)

Clone and install both backend and frontend:

git clone https://github.com/Pushan2005/SpotTransfer.git
cd SpotTransfer

Backend Setup

  1. Navigate to the backend directory:

    cd backend/
  2. Install the Python dependencies:

    pip install -r requirements.txt
  3. Rename .env.example to .env and add your Spotify credentials (get these from the Spotify Developer Dashboard):

    SPOTIPY_CLIENT_ID=<your_spotify_client_id>
    SPOTIPY_CLIENT_SECRET=<your_spotify_client_secret>

    Important note - Spotify has made changes to their API where users will now require a Spotify Premium Subscription in order to use the API. Please make sure to get these credentials from an account that has a premium subscription (the Spotify account you get the credentials from doesn't have to be the same account where the playlists are, a friend's account with a subscription also works)

  4. Start the Flask server:

    python3 main.py

    Sometimes, using python3 might not work depending on how python is configured on your system. Running py main.py usually works in such situations.

Frontend Setup

  1. In the frontend directory, rename .env.example to .env and make any changes to the variable if required:
    VITE_API_URL=http://localhost:8080
  2. Install the frontend dependencies:
    npm install
  3. Run the dev server for the frontend:
    npm run dev
    If you wish, you can build the app and serve it as well but the dev server works just fine for now.
  4. Open your browser and go to http://localhost:5173.