Web app for physical music library management.
To do the following steps, you need docker, docker-compose and npm (with Node) locally installed.
- clone git repo
- run
docker-compose up - waaaait for it
- install dependencies with composer
./composer.sh install - copy assets
./console.sh assets:install - Run latest migrations
./console.sh doctrine:migrations:migrate - index the database with elasticsearch
./console.sh fos:elastica:populateThis one is superlong, you can proceed with other steps while it's running. If there's a problem, rebuild the docker images;docker-compose down; docker-compose up --build - install javascript dependencies
npm i - build js and css with
npm run build - the app is now accessible at localhost:8086
- login with fonoteka/fonoteka
The following helper scripts are available for your convenience:
./composer.sh- runs composer CLI tool./console.sh- runs Symfony console helper./docker-permfix.sh- fixes potential permission issues (may need sudo)npm run watch- run the watcher which reacts to changes in CSS/javascript source files
- You need nginx, php (fpm), mysql, nodejs with npm and elasticsearch
- clone git repo
- run "composer install"
- configure nginx with php-fpm to serve "web/app.php" (a generic symfony 2 configuration for nginx should work)
- prepare the database "php app/console doctrine:schema:create"
- copy assets "php app/console assets:install"
- (optionally) import the old database "php app/console picapica:import"
- add a user for yourself "php app/console fos:user:create"
- index the database with elasticsearch "php app/console fos:elastica:populate"
- install javascript dependencies "npm i"
- js and css can always be built with "npm run build"
Needs a high enough vm.max_map_count value:
sysctl -w vm.max_map_count=262144
You can permanently set it at /etc/sysctl.conf:
# Za elasticsearch docker
vm.max_map_count=262144
