/bibler-ui

Angular 2 web GUI for the API-only Bibler service.

Primary LanguageTypeScript

Bibler UI

The Bibler UI is web-based frontend for Bibler Server, and requires an instance of the server to be launched.

Developer Quick Start

This is an Angular project using ng @angular/cli as the build system, SCSS for CSS and Bootstrap for layout. npm is the package manager. Assuming you already have node installed via nvm or similar, run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. The following must be set:

export BIBLER_SERVER__URL=https://bibler-server.example.com

Building for Production

To build with Docker and nginx, use the included Dockerfile, such as:

	docker build -t p3000/bibler-ui:latest . # though you probably want your own repo and tag strings :)

	# or cross-platform
	docker buildx build --platform linux/arm64/v8,linux/amd64 -t p3000/bibler-ui:latest . --push

    # Test your image with your own configuration similar to:
    docker run -it -p 4200:80 --rm -e "BIBLER_SERVER_URL=https://bibler-server.prestonlee.com" p3000/bibler-ui:latest # or your tag

Production Deployment

In your container hosting environment, point an instance at your Bibler Server installation:

	docker run -d -p 9000:80 --restart unless-stopped -e "BIBLER_SERVER_URL=http://localhost:3000" p3000/bibler-ui:latest # or any official tag