μlogger • web viewer for tracks uploaded with μlogger mobile client
This is a web application for real-time collection of geolocation data, tracks viewing and management. Together with a dedicated μlogger mobile client it may be used as a complete self hosted server–client solution for logging and monitoring users' geolocation.
Live demo:
Minimum requirements:
Features:
Install
uploads
folder (for uploaded images) should be writeable by PHP scriptsnpm
and run npm install
and npm run build
in root folderconfig.default.php
and rename it to config.php
. Customize it and add database credentialsscripts/setup.php
script, enable it by setting $enabled value to true
scripts/setup.php
script.docker/
and .tests/
as well as composer files are needed only for development. May be safely removedUpgrade to version 1.x
scripts/migrate_to_1_x.mysql
admin
column in users
table to true for admin usersconfig.php
php scripts/migrate_to_1_x.php
config.php
file and remove all variables except database settings, see config.default.php for valid valuesuploads
folder (for images uploaded from client app) is writable by PHPdocker run --name ulogger -p 8080:80 -d bfabiszewski/ulogger
and access http://localhost:8080
in your browser. Log in with admin
:admin
credentials and change default passworddocker run --name ulogger -e ULOGGER_LANG="pl" -p 8080:80 -d bfabiszewski/ulogger
docker build .
from the root folder where Dockerfile
reside. There are optional build-time arguments that allow you to set default database passwords for root and ulogger usersdocker build --build-arg DB_ROOT_PASS=secret1 --build-arg DB_USER_PASS=secret2 --build-arg DB_DRIVER=sqlite .
Tests
composer install
npm install
docker build -t ulogger .
docker run -d --name ulogger -p 8080:80 -p 8081:3306 --expose 3306 -e ULOGGER_ENABLE_SETUP=1 ulogger
.env
file in .tests/
folder) to set up connection details (below database credentials are docker defaults)
DB_DSN="mysql:host=127.0.0.1;port=8081;dbname=ulogger;charset=utf8"
DB_USER=ulogger
DB_PASS=secret2
ULOGGER_URL="http://127.0.0.1:8080"
XDEBUG_MODE=coverage ./vendor/bin/phpunit -c .tests/phpunit.xml
npm test
npm run lint:js
npm run lint:css
Donate
bc1qt3uwhze9x8tj6v73c587gprhufg9uur0rzxhvh
0x100C31C781C8124661413ed6d1AA9B1e2328fFA2
License
Twice a month we will interview people behind open source businesses. We will talk about how they are building a business on top of open source projects.
We'll never share your email with anyone else.