Skip to content

asadovsky/cdb

Repository files navigation

CDB

CRDT database design exploration.

Demo instructions

The following instructions assume you have Go 1.5 (or above) and Node.js 4.3 (or above) installed.

Fetch and build the code:

export GOPATH=~/dev/go
mkdir -p ${GOPATH}/src/github.com/asadovsky
cd ${GOPATH}/src/github.com/asadovsky
git clone --recursive https://github.com/asadovsky/cdb.git
cd cdb
make build

Run two instances on one machine:

# Run these commands in two separate terminals, and open the printed URLs.
dist/demo -port=4001 -peer-addrs=localhost:4002
dist/demo -port=4002 -peer-addrs=localhost:4001

Or, run instances on two different machines:

# Run this command on Alice's machine.
dist/demo -port 4001 -loopback=false

# Run this command on Bob's machine, setting the -peer-addrs flag to Alice's
# network address.
dist/demo -port 4001 -loopback=false -peer-addrs=192.168.1.239:4001

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published