Skip to content

HermesGermany/HSI-Demo-Client

Repository files navigation

HSI Demo Client

Install with Node.JS (Docker users see below)

Node.js: download latest LTS or Current version and install.

Git clone or download zip and unpack this project to a directory on your computer.

Open a terminal in the project directory and install the node dependencies (only once) with:

C:> npm install

Start the server:

C:> node server.js

Open http://localhost:8080/hsi/ in your favorite browser.

To stop the server simply hit CTRL-C and the script should end.

To use the client you need login credentials - ask your Hermes business service contact.

Proxy configuration

If there is a proxy in your company network to access the internet, the proxy must be configured for npm installation and for the HSI Demo Client.

Add a file C:\users\[username]\.npmrc (when renaming the file in Windows add a dot at the end: .npmrc. - and it works) with this content:

proxy = http://proxyhostname:8080/
https-proxy = http://proxyhostname:8080/
strict-ssl = false

Please add the proxy information to the file modules/hsi/configuration.yaml so the HSI Demo Client gets access to the Hermes servers.

proxy:
  host: 'proxyhostname'
  port: 8080

Install with Docker

For Windows or Mac users: open https://www.docker.com/get-started in your browser.

For Linus users: install Docker with:

$ curl -sSL https://get.docker.com | sh
$ sudo adduser [yourusername] docker

Build the Docker image

If you have proxy caches for apt-get and npm or a company proxy you should build uwegerdes/baseimage (or uwegerdes/baseimage-arm32v7 for Raspberry Pi 3) and uwegerdes/nodejs before building this image.

You should build the HSI Demo Client image with:

$ docker build -t hermesgermany/hsi-demo-client .

Run the Docker container

Run the container with:

$ docker run -it --rm -p 8080:8080 --name hsi-demo-client hermesgermany/hsi-demo-client

The container is removed and recreated on the next start.

About

Hermes Shipping Interface Demo Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published