Skip to content

vivo-community/scholars-angular

Repository files navigation

Build Status Coverage Status

scholars-angular

Scholars Angular is a frontend application for exposing VIVO content that is being served via Scholars Discovery.

[more details]

Installation

Prerequisites

In addition to having Docker installed, a running Scholars Discovery is also required.

Docker Deployment

  1. Install Docker
  2. Start Scholars Discovery
  3. Build the image
     docker build -t scholars/angular .
  4. Deploy the container
  docker run -d -p 4200:4200 \
  -e HOST=localhost \
  -e PORT=4200 \
  -e BASE_HREF=/ \
  -e SERVICE_URL="http://localhost:9000" \
  -e EMBED_URL="http://localhost:4201" \
  -e VIVO_URL="http://localhost:8080/vivo" \
  -e VIVO_EDITOR_URL="http://localhost:8080/vivo_editor" \
  scholars/angular

Above environment variables passed into the container are defaults. URLs must be enclosed in double quotes. BASE_HREF must start and end with a forward slash.

Verify Installation

A successful installation should result in the Scholars Angular site at: http://localhost:4200/