SpotifyClone is a YouTube-based music web app that mimics the look and feel of Spotify. Users can browse trending videos, play them as video, search for videos, and manage playlists saved in a MySQL database.
-
Google API Key
- Go to the Google API Console.
- Create a new project.
- Enable the YouTube Data API v3.
- Generate an API key.
-
Add API Key
-
Open
appsettings.json. -
Add your API key:
"APIKey": "YOUR_API_KEY_HERE"
-
-
Install MySQL
-
Create a MySQL user:
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'; FLUSH PRIVILEGES;
-
-
Run the Application
dotnet run
- This will create the database automatically and host the website.
- The site will run automatically at the default URL (usually
https://localhost:5001).
-
YouTube API Integration
- Makes a request to the YouTube Data API on homepage load.
-
Homepage Video Grid
- Shows all homepage videos with thumbnails.
- Play videos directly in the browser.
-
Search Functionality
- Search videos using a string.
- Display search results in a responsive grid.
- Add videos to playlists.
-
Spotify-like UI
- Styled to mimic the Spotify interface.
-
Playlist Management
- Save playlists with songs in the MySQL database.
- View playlist details, showing videos in a grid.
- ASP.NET Core MVC
- MySQL
- Bootstrap 5
- YouTube Data API v3
- JavaScript for dynamic video rendering