# Spotify Clone

## Overview
This project is a Spotify clone built using Python, SQL, and PHP. It allows users to play music stored on a NAS (Network Attached Storage) device accessible over the internet. The application is structured into a backend and frontend, with a focus on providing a seamless music streaming experience.

## Project Structure
```
spotify-clone
├── backend
│   ├── app.py
│   ├── database
│   │   ├── schema.sql
│   │   └── queries.sql
│   └── services
│       └── nas_service.py
├── frontend
│   ├── index.php
│   ├── css
│   │   └── styles.css
│   ├── js
│   │   └── scripts.js
│   └── templates
│       └── layout.php
├── config
│   ├── config.php
│   └── .env
├── README.md
└── requirements.txt
```

## Features
- Stream music from a NAS device.
- User-friendly interface for browsing and playing music.
- Backend services for handling music retrieval and streaming.
- Database support for storing user data and music metadata.

## Setup Instructions
1. **Clone the repository:**
   ```
   git clone <repository-url>
   cd spotify-clone
   ```

2. **Backend Setup:**
   - Navigate to the `backend` directory.
   - Install the required Python packages listed in `requirements.txt`:
     ```
     pip install -r requirements.txt
     ```
   - Set up the database using the SQL schema in `database/schema.sql`.
   - Configure the NAS connection in `backend/services/nas_service.py`.

3. **Frontend Setup:**
   - Navigate to the `frontend` directory.
   - Ensure your web server is configured to serve PHP files.
   - Access the application through your web browser.

4. **Configuration:**
   - Update the `config/config.php` file with your database connection details.
   - Set environment variables in `config/.env` as needed.

## Usage
- Open your web browser and navigate to the frontend URL.
- Use the interface to browse and play music from your NAS device.

## Contributing
Contributions are welcome! Please submit a pull request or open an issue for any suggestions or improvements.

## License
This project is licensed under the MIT License.