Scholars Angular is a frontend application for exposing VIVO content that is being served via Scholars Discovery.
[more details]
In addition to having Docker installed, a running Scholars Discovery is also required.
- Install Docker
- Start Scholars Discovery
- Build the image
docker build -t scholars/angular .
- 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.
A successful installation should result in the Scholars Angular site at: http://localhost:4200/