Reference: Docker Installation Guide
- Setup a local docker-compose swarm with the instructions found here
- Run docker-compose up in the same directory of your docker-compose.yml. This command will initialize the swarm within your local docker-machine. Full docker-compose documentation can be found here
- Nodes are available on localhost port
51010-51012
- Connect a websocket client with Bluzelle websocket API
- Create a node server application using Bluzelle node.js library and API
- CTRL-C to terminate the docker-compose swarm
export BLUZELLE_WEBSOCKET=<Your IP and Port>
export BLUZELLE_UUID=<Your UUID>
import bluzelle from 'bluzelle';
bluzelle.connect(BLUZELLE_WEBSOCKET, BLUZELLE_UUID);
File: bluzelle.js API Document: https://bluzelle.github.io/api/
API list:
- create
- update
- remove
- read
- keys
- has