TAMULib / scholars-angular

MIT License
1 stars 1 forks source link
angular

Node CI with NPM Coverage Status

scholars-angular

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

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 BROKER_URL="ws://localhost:9000" \
    -e SERVICE_URL="http://localhost:9000" \
    -e SSR_SERVICE_URL="http://127.0.0.1:9000" \
    -e EMBED_URL="http://localhost:4201" \
    -e UI_URL="http://localhost:4200" \
    -e VIVO_URL="http://localhost:8080/vivo" \
    -e VIVO_EDITOR_URL="http://localhost:8080/vivo_editor" \
    -e COLLECT_SEARCH_STATS=false \
    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/