How to GeoDB in JS with webpack
Export you Api Key, and User Token, found in https://geodb.io/dashboard/security
export GEODB_USER_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
export GEODB_API_KEY="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Run:
node index.js
In a terminal:
export GEODB_DEMO_ROLE=PRODUCER
export GEODB_DEMO_CHANNEL=sometestchannel
node index.js
Then do the same in another terminal, but this time launch a new consumer. Repeat this as much as you want.
export GEODB_DEMO_ROLE=CONSUMER
export GEODB_DEMO_CHANNEL=sometestchannel
node index.js
run npm run test:browser
visit http://localhost:8083, open the console
alternatively run npm run test
to run the same test in node
Feel free to get in touch with us!