https://github.com/atoptima/minimal-galia-js-client
https://github.com/atoptima/minimal-galia-js-client
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/atoptima/minimal-galia-js-client
- Owner: atoptima
- Created: 2023-02-28T09:19:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T09:21:06.000Z (over 2 years ago)
- Last Synced: 2025-05-16T17:11:33.590Z (5 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal Galia Client in Javascript
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.
## How to run:
1. Make sure you have `nodejs` installed on your machine: https://nodejs.org/en/download/
2. Make sure you have `yarn` installed on your machine: https://classic.yarnpkg.com/en/docs/install
3. Edit the `.env` file with the correct values for your specific environment
- `GALIA_HOST`: Galia host
- `GALIA_PORT`: Galia port
- `MY_HOST`: Host of this (client) application
- `MY_PORT`: Port of this (client) application
- `APPLICATION_ID`: Identifier of the Galia application you want to access
- `ACCESS_TOKEN`: Bearer access token (get this by loging in to Galia)
4. Go to root folder of the Minimal Client
5. Install the dependencies: `yarn install`
6. Launch the server: `node index.js`