This is a minimal implementation of a client written in Javascript for Galia.
It is intended to showcase how one can receive the results from async optimizations sent to Galia.
It implements both the webhook and the websocket interfaces.
- Make sure you have
nodejs
installed on your machine: https://nodejs.org/en/download/ - Make sure you have
yarn
installed on your machine: https://classic.yarnpkg.com/en/docs/install - Edit the
.env
file with the correct values for your specific environmentGALIA_HOST
: Galia hostGALIA_PORT
: Galia portMY_HOST
: Host of this (client) applicationMY_PORT
: Port of this (client) applicationAPPLICATION_ID
: Identifier of the Galia application you want to accessACCESS_TOKEN
: Bearer access token (get this by loging in to Galia)
- Go to root folder of the Minimal Client
- Install the dependencies:
yarn install
- Launch the server:
node index.js