GithubHelp home page GithubHelp logo

popouille / spieldose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aportela/spieldose

0.0 1.0 0.0 3.54 MB

an application for streaming music hosted on your own server

License: GNU General Public License v3.0

PHP 45.59% CSS 2.32% JavaScript 50.45% HTML 1.64%

spieldose's Introduction

spieldose

tl;dr DEV VERSION, use at your own risk

clone repository (https://github.com/aportela/spieldose.git)
install dependencies: composer install
create database: php tools/install-upgrade-db.php
scan music path: php tools/scan-music.php --path m:\SOUNDTRACKS
scrap (optional) artist/album data: php tools/scrap-music.php --all
create user (optional, can be done from web): php tools/set-credential.php --email foo@bar --password secret
start php web server instance: cd public && php -S 0.0.0.0:8080 cli-server.php
browse http://localhost:8080

Web server configurations (according to php slim docs):

WARNING: set user/group path permissions in database & log paths according with your web server process

nginx

TODO: access through sub-folder

If you want to use a virtual host, the configuration would be the following:

server {
    # server listening port
    listen 80;
    # server full qualified domain name
    server_name www.mydomain.com;
    index index.php;
    # complete local path of spieldose repository
    root /var/www/nginx/spieldose/public;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ \.php {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_index index.php;
        # uncomment this (with your address/port settings) for using php fpm connection via tcp socket
        #fastcgi_pass 127.0.0.1:9000;
        # uncomment this (with your path) for using php fpm via unix socket
        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    }
}

apache

If you want to access through a sub-folder of the server (example http://www.mydomain.com/spieldose) you do not have to do anything. Just unzip the package in the webserver root path folder, ex: /var/www/spieldose)

If you want to use a virtual host, the configuration would be the following:

<VirtualHost *:80>
        ServerName www.mydomain.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/spieldose/

        <Directory /var/www/spieldose/>
                Options +Indexes +FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/spieldose-error.log
        CustomLog ${APACHE_LOG_DIR}/spieldose-access.log combined
</VirtualHost>

Screenshots (for the impatient)

sign in

Alt text

dashboard

Alt text

search

Alt text

browse artists

Alt text

artist resume

Alt text

artist bio

Alt text

artist tracks

Alt text

artist albums

Alt text

browse albums

Alt text

browse playlists

Alt text

spieldose's People

Contributors

aportela avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.