Spotify Clone

A full-stack Spotify clone built using the MERN stack (MongoDB, Express, React, Node.js). This project replicates the core features of Spotify, including music streaming, and playlist management .Additionally, it includes an admin panel for managing content and users.

About the Project

This project aims to provide a music streaming experience similar to Spotify. The admin panel allows administrators to manage the music content and user data effectively. Through admin panel the users uplaod songs and images of the songs. The users can add the in the album where they want and then listen and enjoy a seamless audio experience.

Features

  • Music Streaming: Users can stream music tracks in real-time.

  • Playlist Management: Users can create, edit, and delete playlists.

  • Admin Panel: Dedicated admin panel for managing users, tracks, and other content.

  • Technologies Used

  • Frontend: React, Tailwind CSS

  • Backend: Node.js, Express

  • Database: MongoDB

  • Installation

To set up this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/upeshjeengar/spotify-clone.git
    cd spotify-clone
  2. Install dependencies for backend:

    cd spotify-backend
    npm install
  3. Install dependencies for frontend:

    cd spotify-clone
    npm install
  4. Set up environment variables: Create a .env file in the spotify-backend directory and add your MongoDB URI, and other necessary environment variables.

    CLOUDINARY_NAME = ""
    CLOUDINARY_API_KEY = ""
    CLOUDINARY_SECRET_KEY = ""
    MONGODB_URL = ""
    
    
  5. Run the backend server:

    cd spotify-backend
    npm server.js
  6. Run the frontend:

    cd spotify-clone
    npm run dev

Usage

After following the installation steps, open your browser and go to http://localhost:5173 to access the frontend. The backend runs on http://localhost:4000 by default.
For deployment you can remove admin page by updating ./frontend/src/components/Navbar.jsx, ./frontend/src/App.jsx and delete ./frontend/src/spotify-admin

Screenshots

Homepage

Screenshot 2024-08-25 143709

Screenshot 2024-08-25 144459

Screenshot 2024-08-25 144756

Screenshot 2024-08-25 144918 Screenshot 2024-08-25 145016

Screenshot 2024-08-25 145016