Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Play your personal music files using a web browser

License

Notifications You must be signed in to change notification settings

lightreign/html5-musicplayer

Repository files navigation

HTML5 MusicPlayer

I wrote this code a few years ago as a concept, and since then streaming music web/mobile/native clients have really exploded onto the scene. Despite this, I decided to rewrite the application for a bit of fun anyway, it sure has been! Although I think there is not much reason to keep going with it given the alternatives out there, archiving this project.

Dependencies

  • PHP >= 7.4, 8.1 recommended
  • PHP SQlite3 extension
  • Composer (getcomposer.org)
  • NodeJS v10.x
  • Node Package Manager (npm)
  • Bash shell for installer script
  • HTML5 compliant browser (everybody has one these days)

Installation

  1. In the project root directory run:
composer install
npm install
npm run build
  1. To setup the directories & permissions the project needs, and setup the all important database:
npm run setup
  1. Once the installer has run you'd need to run this on a web server that uses PHP such as Nginx with php-fpm. You would expose the public folder on the webserver to the network with the anything outside of that not exposed.

Or you can use simply use PHP's built-in server. I have included a shell script which can be run by running:

npm run serve

In the project root. This will spin up a local web server running on port 8000.

  1. Enjoy