/browser

Serve content read from a Libero API to the public

Primary LanguagePHPMIT LicenseMIT

Libero browser

Build Status

Serve content read from a Libero API to the public.

Getting started

To run Browser in the dev environment:

  1. Run docker-compose down --volumes --remove-orphans && docker-compose up --build.

  2. Open http://localhost:8080/ to see the homepage.

  3. Open http://localhost:8080/articles/article1 to see the scholarly article article1.

Configuration

The dev environment reads content from a Libero dummy API, using the configuration and data in .docker/api.

Running in production

The application is not yet stable, but Docker images are published (liberoadmin/browser).

To run an image reading from two content services (blog-articles and scholarly-articles), you will need the following configuration:

  • Set the API_URI environment variable to be the root of the Libero API.

  • Create config/packages/libero_page.yaml (either by extending the image or mounting a file):

    libero_page:
        pages:
            homepage:
                path: '/'
                primary_listing: 'scholarly-articles/items'
            content:
                blog-articles:
                    path: '/blog/{id}'
                scholarly-articles:
                    path: '/articles/{id}'

Getting help