Proof of Concept of business blockchain node network. Handcrafted thanks to BigchainDB.
App consists of many elements, mostly unfinished, provided just in purpose of legitimating proposed Proof of Concept functionality.
Build on hackathon starter boilerplate with Docker for simulating blockchain network.
- NodeJS w/ Express,
- MongoDB w/ Mongoose,
- Docker container w/ BigchainDB (with separate mongo),
- Babel for missing ES features,
- GraphQL [unaccomplished],
- SocketIO [unaccomplished],
- Http/2 [unaccomplished],
- Flow,
- Mocha testing (Sinon, Chai),
make start
make start-network
make install # configurates and initializes
Rerun and go:
make restart-bigchaindb
Valid response with some basic config information should be available under http://localhost:59984/
.
NOTE: Some errors or configuration outcomes needs explicit restarting of container, don't hesitate to use make restart-bigchaindb
as first repair step.
make logs # watch BigchainDB log
Initialize Blockchain environment with Docker
make # to start main app
make start-network # to start replica-set blockchain network
# if replica-set won't initialize before BigchainDB queries for Primary
make bigchaindb-restart # restart
One instance BigchainDB server is used as interchangeable node handler for entire blockchain network (just for PoC purposes).
Use commands to switch between base node and node-1:
make switch-node-initial
make switch-node-1
In effect replacing config and restarting BigchainDB, achieving lightweil multinode simulation instead of fully-fledged production-ready network, allowing us to legitimate proposed PoC functionality.