PhiloBiblon / philobiblon-ui

PhiloBiblon UI
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

PhiloBiblon UI

New user interface for PhiloBiblon.

Main features:

Modules

PhiloBiblon UI has two main modules:

philobiblon-ui drawio

Build

Steps to build the modules:

  1. Set .env file which defines the environment variables depending on the platform where we are installing (currently, .env.local for local development; .env.pbuidev for sandbox).
    ln -s .env.pbuidev .env
  2. Build backend container.
    cd backend
    mvn clean install
  3. Build frontend container.
    docker-compose --env-file .env build
  4. First time only, get Let's Encrypt ssl certificates to enable the https protocol.
    init-letsencrypt.sh

The last step already starts all modules for PhiloBiblon UI.

Run

Start the PhiloBiblon UI:

docker-compose --env-file .env up -d

Stop the PhiloBiblon UI:

docker-compose --env-file .env stop

Configuration

The configuration is centralized in the env file, where we can find all the environment variables:

backend variables are exposed to the frontend via the backend endpoint: ${API_BASE_URL}/api/config.

philo-clone