@@ -13,11 +13,21 @@ data quickly, leaving more time for coding and other activities.
...
@@ -13,11 +13,21 @@ data quickly, leaving more time for coding and other activities.
##
##
## installation
## Installation
Application runs in the web on a browser, so no other tools are needed. (The
This application is the backend of the Common Query Engine and Viewer application that runs in the background without any form for graphical user interface.
is meant for desktop computers, and will not scale for tablets, phones, or
other devices).
### Packaging
Run "mvn clean package" in the terminal to create a .jar file that can be executed using a JDK.
### Building docker image
Run "docker build -t query_engine ." in the terminal to build the docker image.
### Starting the docker container
To be able to start the docker container run "docker run --name "spring" -d -p 8080:8080" in the terminal.
### Important note!
* The Dockerfile must be in the same folder as the jar.
* The backend is set up to use port 8080.
* To open the GraphQL terminal, go to "$URL:8080/graphiql". Please note that $URL must be replaced with the ip address of the server running the image.
* By running GraphQL queries towards "http://$URL:8080/graphql" you are able to fetch data. Please note that $URL must be replaced with the ip address of the server running the image.