Skip to content

Repository files navigation

Application Setup Guide

This document explains how to run the application using Docker and how to run each service locally for development.

Running the Application with Docker

Prerequisites

  • Install Docker and Docker Compose
  • Ensure port 80 is available on your machine
  • Download or clone the source code

Steps

Build the Containers

Open a terminal in the root directory of the project and run:

docker compose build

Wait for the build process to complete.

Start the Containers

docker compose up -d

This will start all services in detached mode.

Access the Application

Once all containers are running, open your browser and go to:

http://localhost/

The application should now be accessible.


Running the Application Locally (Development Mode)

If you prefer to run each service individually, follow the instructions below.


Frontend Service

Navigate to the frontend folder:

cd frontend

Install Dependencies

npm install

Start Development Server

npm run dev
  • Default port: 5173

Build for Production

npm run build

Preview Production Build

npm run preview
  • Default preview port: 4173

To list all available npm scripts:

npm run

Environment variables are preconfigured to use the default ports of the backend services.


SPARQL Backend Service

Navigate to the Sparql-Backend folder:

cd Sparql-Backend

Prerequisites

  • Install Maven
  • Ensure Java is installed

Install Dependencies

mvn install

Run in Development Mode

mvn spring-boot:run
  • Default port: 8080

Build the Application

mvn clean package

The generated .jar file will be located in:

target/backend-1.0.0.jar

Run the Packaged Application

cd target
java -jar backend-1.0.0.jar

Visualization Service

Navigate to the Visualization folder:

cd Visualization

Prerequisites

  • Install Python 3

Create a Virtual Environment

python -m venv venv

Activate the Virtual Environment

Linux / macOS:

source venv/bin/activate

Windows:

venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

Run the Service

python visualizer.py
  • Default port: 5000

Importer Service

Navigate to the Importer folder:

cd Importer

Prerequisites

  • Install Python 3

Create a Virtual Environment

python -m venv venv

Activate the Virtual Environment

Linux / macOS:

source venv/bin/activate

Windows:

venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

Run the Service

python importer.py
  • Default port: 5001

Default Ports

Service Default Port
Frontend (dev) 5173
Frontend (preview) 4173
SPARQL Backend 8080
Visualization 5000
Importer 5001
Docker (app entry) 80

Notes

  • Ensure all required ports are available before starting the services.
  • Docker setup is recommended for a fully integrated environment and ease of use of the app.
  • Local development is ideal for debugging or developing on individual services.

About

Small web app to work on knowledge graphs and visualize them

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages