An editor for OpenStreetBrowser categories
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
inc
lang
lib/modulekit
modulekit @ 8c87535
src
.gitignore
.gitmodules
LICENSE
README.md
asset.php
composer.json
composer.lock
conf.php-dist
index.php
modulekit.php
package.json
style.css

README.md

openstreetbrowser-editor

An editor for OpenStreetBrowser categories

INSTALL

Prepare installation (based on a plain Ubuntu 16.04 server installation):

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install git apache2 libapache2-mod-php composer nodejs
cd /var/www/html
sudo chown USERNAME: . # replace USERNAME by your username

Actual installation routine:

git clone https://github.com/plepe/openstreetbrowser-editor.git
cd openstreetbrowser-editor
git submodule init
git submodule update
composer install
npm install
cp conf.php-dist conf.php
nano conf.php

Make a categories directory writeable by the web server (Ubuntu). This uses file system ACLs and makes sure that the web server (user www-data) can write and all changes will again be writeable by the web server and you (replace MY-USERNAME by your username):

setfacl -R -m user:www-data:rwX node_modules/openstreetbrowser-categories-main/
setfacl -R -dm user:www-data:rwX node_modules/openstreetbrowser-categories-main/
setfacl -R -dm user:USERNAME:rwX node_modules/openstreetbrowser-categories-main/

Browse to http://localhost/openstreetbrowser-editor -> Voila :-)