Skip to content

mahendraDew/Spotify-clone-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Clone Web App

This is a frontend-only web application that replicates some of the core features of Spotify. It is built using React and utilizes the Spotify API for fetching music data.

Table of Contents

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Installation

  1. Clone the repository to your local machine:

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

    cd spotify-clone-app
    
  3. Install the dependencies:

    npm install
    

Usage

  1. Obtain a Spotify API Key by registering your application on the Spotify Developer Dashboard.

  2. Create a .env file in the root directory and add your Spotify API credentials:

    REACT_APP_SPOTIFY_CLIENT_ID=YOUR_CLIENT_ID
    REACT_APP_SPOTIFY_REDIRECT_URI=YOUR_REDIRECT_URI
    

Replace YOUR_CLIENT_ID and YOUR_REDIRECT_URI with your actual Spotify API credentials.

  1. Start the development server:

npm start The app should now be running at http://localhost:3000.

Features

  • Browse and search for tracks, albums, and artists.
  • View details of individual tracks, albums, and artists.
  • Play previews of tracks.
  • Add tracks to a user's playlist (Note: This feature is for demonstration purposes only and doesn't actually interact with a Spotify account).

Technologies Used

  • React
  • Context API for state management
  • Spotify API for fetching music data

Contributing

If you'd like to contribute, please fork the repository and create a pull request. You can also open an issue if you find any bugs or have suggestions for improvements.

License

This project is licensed under the MIT License.