You can either run the demo:
- On a web server with PHP support
- Using the "Standalone installation" instructions below (could taint your system)
- Using the "Docker image" instructions below (without tainting your system)
You need php-cgi installed.
Change to the x3domlet directory
cd x3domlet
If you don't have nodejs installed you may install it as a standard user through nvm with the following command:
docker/install-nodejs.sh
When nodejs is installed you can run:
npm install && bower install
You need to copy the data to be displayed in directories models/ and kml/
File modifications will trigger the page reload
gulp
The docker image allow you to run the demo in a virtual container without tainting your system.
The current user should be allowed to run docker. Otherwise use 'sudo'.
- Change to the ./docker directory.
- Run "make" to build the docker image.
From the directory containing the "/models" and "/kml" folders you want to use, run:
x3domlet/docker/run.sh
It will start the x3domlet docker image and open a browser window. On exit the script should stop and (WARNING) will remove the container and associated volumes.