In many cases, the most optimal way for you to develop and work with the Bluzelle swarm is to run your own swarm, isolated, and within the confines of your own machines or network(s). Running your own testnet is quite simple and still affords you access to all the connectors, libraries, and other tools that are available on the public testnet. In order to facilitate the deployment of private test swarms, Bluzelle has implemented quick deploy docker-compose script that will automatically initialize and configure a three node swarm. Start by cloning the docker-swarm-deploy repository:

$ git clone https://github.com/bluzelle/docker-swarm-deploy $ cd docker-swarm-deploy

Now you need to setup your local environment to run the swarm. Locate the local interface IP address using the following command:

$ ifconfig en1

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500

inet6 fe80::1837:c97f:df86:c36f%en1 prefixlen 64 secured scopeid 0xa

→>inet 192.168.0.34 netmask 0xffffff00 broadcast 192.168.0.255

nd6 options=201<PERFORMNUD,DAD>

media: autoselect

status: active

In the above case, the IP address of the local interface is 192.168.0.34. If you do not see inet <ipaddress>, run ifconfig and comb through manually to find your local IP address. Your output might vary depending on operating system. The example here is based on MacOS.

Modify the .env file at the root of the docker-swarm-deploy repository to include the local interface IP.

…

LOCAL_IP=192.168.0.34

…

Next you need to create an Etherscan account. Go to https://etherscan.io/register and create an account. Create an Etherscan API KEY by clicking Developers -> API-KEYs and once again add that to your .env file at the root of docker-swarm-deploy.

…

ETHEREUM_IO_API_TOKEN=***********************

… Finally, modify the .env file to include an Ethereum mainnet address that contains tokens or use the sample address provided below. …

ETHEREUM_ADDRESS=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a

…

That’s it. You’re done. All you need to do is bring up the swarm with:

$ docker-compose up

You can now interact with the database on ports 51010–51012.