Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.31 KB

BLUZELLE.md

File metadata and controls

45 lines (31 loc) · 1.31 KB

Bluzelle

Start on your local

Install Docker

Reference: Docker Installation Guide

  1. Setup a local docker-compose swarm with the instructions found here
  2. 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
  3. Nodes are available on localhost port 51010-51012
  4. Connect a websocket client with Bluzelle websocket API
  5. Create a node server application using Bluzelle node.js library and API
  6. CTRL-C to terminate the docker-compose swarm

Bluzelle Configuration

Environment Settings

export BLUZELLE_WEBSOCKET=<Your IP and Port>
export BLUZELLE_UUID=<Your UUID>

Connect with Bluzelle Swarm DB

import bluzelle from 'bluzelle';

bluzelle.connect(BLUZELLE_WEBSOCKET, BLUZELLE_UUID);

Bluzelle CRUD Component

File: bluzelle.js API Document: https://bluzelle.github.io/api/

API list:

  • create
  • update
  • remove
  • read
  • keys
  • has