All of us who like music know spotify, that is why we are going to learn how to have our own server to store our music, which we will then listen to from any of our devices (Android, Ios, PC, etc.), without the need to install anything or the g nor from anywhere else.
For this we are going to use cool an open source tool, with a long history and an excellent development community.
What is Koel?
koel, owes its name to a singing bird, it arises from the need to have a complete, usable, free and beautiful tool to store music on a server, which will then be played from other devices.
It is built with the frameworks Laravel for the client side and Vue.js server-side, using ECMAScript, Sass and HTML5, It is designed to be used with any of the modern browsers, its installation and use is quite simple.
This application has a very neat interface, in addition to having features such as random music, uploading music with drag and drop, name change, among others.
How to install Koel
Before installing Koel we must meet certain requirements for the server side
Koel server requirements
- All Laravel requirements - PHP, OpenSSL, composer and such.
- MySQL or MariaDB.
- The latest stable version of NodeJS with
npm
for VueJS
Installing Koel on the Server
From the console run the following commands:
cd PUBLIC_DIR git clone https://github.com/phanan/koel.git .
git checkout v2.2.0 # Check the latest version at https://github.com/phanan/koel/releases
composer install
Now modify the .env
with your data. These are the minimum values that you must fill in:
DB_CONNECTION
,DB_HOST
,DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
ADMIN_EMAIL
,ADMIN_NAME
,ADMIN_PASSWORD
APP_MAX_SCAN_TIME
After you have configured your .env
start your koel instance, with the following command
php artisan koel: init
Then you can access your music streaming server server, accessing from your browser to http://localhost:8000/
Conclusions about Koel
Without a doubt, Koel is a fairly robust tool that solves a fairly common problem, which is being able to access your music without restriction from anywhere and with any device.
It is also important to emphasize that Koel has various features such as Playlist, grouping of songs by artist, album, etc., it can also be integrated with song lyrics services.
And finally, if you want, you can also register users to those you want (and you have permissions) share the music you have stored.
Laravel for the client side and Vue.js for the server side ???? Since when is php used on the client side?
Since there is a php interpreter for the console, just like python. There is even a Gtk Php interface.
And why Koel and not MPD? Or could you give a class on how to configure your streaming with MPD, please?
What an aesthetic that blog has, very nice but it takes forever to open.
So are plagiarism returning?
There is no plagiarism of any kind, the friend made a review of our article on his blog .. And he linked us.