Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
bf41b354
Commit
bf41b354
authored
Jun 21, 2017
by
Rurik Bugdanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README.md: how to run the demo
parent
80b9056f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
1 deletion
+52
-1
README.md
README.md
+52
-1
No files found.
README.md
View file @
bf41b354
x3dom + leaflet
\ No newline at end of file
# x3dom + leaflet
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)
## 1. Standalone installation
### 1.1. Install dependencies
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
```
### 1.2. Copy the test data
You need to copy the data to be displayed in directories models/ and kml/
### 1.3. Run the test server and open a browser window
File modifications will trigger the page reload
```
gulp
```
## 2. Docker image
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'.
### 2.1. Build the docker image
-
Change to the ./docker directory.
-
Run "make" to build the docker image.
### 2.2. Test
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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment