This Music Streaming Website is a web application built with Flask that allows users to upload, download, play, and delete songs. It provides a user-friendly interface for browsing and managing a collection of music tracks.
- Browse and play music: Users can browse through their uploaded songs and play them directly on the web application.
- Search Song: Users can search for a specific song by its name, artist, or album.
- Upload New Song: Users can upload new songs to add them to their collection.
- Delete Song: Users can delete unwanted songs from their collection.
- View All Songs: Users can view all the songs available in their collection.
-
Install Python and pip:
sudo apt-get update sudo apt-get install python3 python3-pip
-
Clone the repository to your local machine:
git clone <repository_url>
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the Flask app environment:
export FLASK_APP=app.py
-
Create a MySQL database:
CREATE DATABASE music_streaming;
Create the necessary tables by running the SQL scripts provided in the repository (
songs.sql
,songs_list.sql
). -
Run the application:
flask run
- Open your web browser and navigate to
http://localhost:5000
. - Use the "Play" button to browse and play music tracks.
- Utilize the search functionality to find specific songs by name, artist, or album.
- Upload new songs using the "Upload Song" button.
- Remove unwanted songs from your collection by clicking the "Delete Song" button.
- To view all the songs in your collection, click the "View All Songs" button.
![Screenshot 2023-06-11 at 1 22 57 AM](https://private-user-images.githubusercontent.com/134539162/244891965-229a1cde-8c11-4e04-b79e-b3665887bdcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwOTUzNDAsIm5iZiI6MTcyNDA5NTA0MCwicGF0aCI6Ii8xMzQ1MzkxNjIvMjQ0ODkxOTY1LTIyOWExY2RlLThjMTEtNGUwNC1iNzllLWIzNjY1ODg3YmRjYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQxOTE3MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYmRkMzk4NTYzYjViYzc4MGRiMWJhM2JiNzZkMmQ1NDJkNmE3NjJjM2Q2YzY1MmE4OTg0ZWFhZmQ3NDRkYTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8Mnzt5DExxoHpPAmbeOASW6ZVA7xP4ogukZ9duQPsLA)
Contributions to the Flask Music App are always welcome! If you find any bugs, have suggestions for improvements, or want to contribute new features, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.