forked from ppanopticon/virtual-exhibition-manager
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from simonpeterhans/kotlin-upgrade
VREM Upgrade
- Loading branch information
Showing
87 changed files
with
3,616 additions
and
2,961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# These are explicitly windows files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,62 @@ | ||
# Virtual Reality Exhibition Manager (VREM) | ||
[![Build Status](https://travis-ci.org/VIRTUE-DBIS/virtual-exhibition-manager.svg?branch=master)](https://travis-ci.org/VIRTUE-DBIS/virtual-exhibition-manager) | ||
|
||
The Virtual Reality Exhibition Manager (VREM) is a tool that allows for configuration, storage of and access to VR exhibition definitions. | ||
This is the Backend. For the front end in Unity see [VREP](https://github.com/dbisUnibas/virtual-exhibition-presenter). | ||
For the User Interface see [VREM-UI](https://github.com/sauterl/virtual-exhibition-manager-ui) | ||
It has been created as part of the [Open Cultural Data Hackathon 2018](http://make.opendata.ch/wiki/event:2018-10), held in Zurich, Switzerland. | ||
[![Build Status](https://travis-ci.org/VIRTUE-DBIS/virtual-exhibition-manager.svg?branch=master)](https://travis-ci.org/VIRTUE-DBIS/virtual-exhibition-manager) | ||
|
||
The Virtual Reality Exhibition Manager (VREM) is a tool that allows for configuration, storage of and access to VR | ||
exhibition definitions. | ||
While VREM acts as a back end, the exhibitions can be viewed in | ||
the [Virtual Exhibition Presenter (VREP)](https://github.com/dbisUnibas/virtual-exhibition-presenter) (Unity). | ||
For the Angular UI see [VREM-UI](https://github.com/sauterl/virtual-exhibition-manager-ui). It has been created as part | ||
of the [Open Cultural Data Hackathon 2018](http://make.opendata.ch/wiki/event:2018-10), held in Zurich, Switzerland. | ||
|
||
## Prerequisites | ||
|
||
Below is a very shortened version of the [setup guide](https://github.com/VIRTUE-DBIS/virtual-exhibition-presenter/wiki/Setup-Guide) on how to setup VREM. | ||
Below is a very shortened version of | ||
the [setup guide](https://github.com/VIRTUE-DBIS/virtual-exhibition-presenter/wiki/Setup-Guide) on how to setup VREM. | ||
|
||
### System dependencies | ||
* git | ||
* JDK 8 or higher | ||
* You will require [MongoDB](https://docs.mongodb.com/manual/installation/) as storage engine. We recommend using [Docker](https://www.docker.com). | ||
If you have installed docker, you can start a new container using `docker run --name vrem-container -d -p 27017:27017 mongo`. If you already have a container, restart it using `docker start mongo`. | ||
If you're on a unix-system, use the `startdb.sh` script. | ||
|
||
* Git | ||
* JDK 11 or higher | ||
* You will require [MongoDB](https://docs.mongodb.com/manual/installation/) as storage engine. We recommend | ||
using [Docker](https://www.docker.com). If you have installed docker, you can start a new container | ||
using `docker run --name vrem-container -d -p 27017:27017 mongo`. If you already have a container, restart it | ||
using `docker start mongo`. If you're on a unix-system, use the `launch_db.sh` script. | ||
|
||
## Building VREM | ||
VREM can be built using [Gradle](http://gradle.org/). Building and running it is as easy as | ||
|
||
VREM can be built using [Gradle](http://gradle.org/). Building and running it is as simple as: | ||
|
||
``` | ||
./gradlew clean deploy | ||
java -jar build/libs/vrem.jar | ||
java -jar vrem.jar <command> | ||
cd build/libs | ||
java -jar virtual-exhibition-manager-2.0.0-SNAPSHOT.jar | ||
java -jar virtual-exhibition-manager-2.0.0-SNAPSHOT.jar <command> | ||
``` | ||
|
||
Make sure you have the correct working directory set so VREM can properly import exhibitions and serve content. | ||
|
||
## Starting a server | ||
|
||
Before starting, you must adapt the configurations in your config.json file (see example file). Then you can start the VREM server | ||
by typing into your console: | ||
Before starting, you should adapt the configurations in your config.json file (see example file). | ||
After doing so, you may serve stored exhibitions by running VREM with the following command: | ||
|
||
``` | ||
java -jar build/libs/virtual-exhibition-manager-1.2.jar server -c /path/to/your/config.json | ||
java -jar virtual-exhibition-manager-2.0.0-SNAPSHOT.jar server -c /path/to/your/config.json | ||
``` | ||
|
||
## Importing a collection | ||
As an exmple, consider the following command: | ||
## Importing an exhibition | ||
|
||
By using the `import-folder` command, you can import a stored exhibition to the running MongoDB instance in order to be | ||
able to serve the exhibition via the `server`command afterwards. | ||
The following command imports a collection from the `data/import/my_exhibition` folder (relative to VREM's directory): | ||
|
||
``` | ||
import-folder --path ../vre-mixnhack19/exhibition --config mixnhack19.json --name "mixnhack19" --description "Exhibition for Mix'n'Hack 2019" --clean | ||
import-folder --config=config.json --path=data/import/my_exhibition --name=demo | ||
``` | ||
|
||
Since the images themselves are not stored in the database, VREP will maintain a folder containing the exhibition images | ||
in `data/` (relative to VREM). | ||
|
||
For an exhibition example, consult the repository | ||
at [https://github.com/VIRTUE-DBIS/vre-mixnhack19](https://github.com/VIRTUE-DBIS/vre-mixnhack19). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.