Skip to content

123xylem/Spotify-Lite

Repository files navigation

🎵 Spotify-Lite

Full-stack Spotify clone built with PHP, JavaScript, and MySQL. Features music playback, playlists, and user management.

Tech Stack

  • PHP
  • CSS
  • JavaScript
  • MySQL

Features

  • 🎧 Music playback
  • 👤 User authentication
  • 📱 Responsive design
  • 📑 Playlist management
  • 🎸 Artist pages
  • 💿 Album views
  • 🔍 Search functionality
  • ⚙️ User settings

Local Setup

Prerequisites

  • PHP 7.4+
  • MySQL
  • Web server (Apache/Nginx)

Installation

  1. Clone repo
git clone https://github.com/your-username/spotify-lite.git
  1. Import database
mysql -u root -p < spotify.sql
  1. Configure database connection
// includes/config.php
$db = new PDO("mysql:host=localhost;dbname=spotify", "user", "password");
  1. Start server
php -S localhost:8000
  1. Visit http://localhost:8000

Project Structure

spotify-lite/ ├── assets/ # Static files ├── includes/ # PHP components ├── .php # Page controllers └── spotify.sql # Database schema

Key Files

  • index.php - Main entry
  • browse.php - Music browser
  • playlist.php - Playlist manager
  • search.php - Search functionality
  • settings.php - User settings

Contributing

  1. Fork repo
  2. Create feature branch
  3. Commit changes
  4. Push to branch
  5. Open pull request

Credits

Built for Muso.ga with help from Reece Kenney

License

MIT

About

A Spotify Clone with PHP & Js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published