Clone or fork this repo
git clone [email protected]:bigchaindb/bigchaindb-react-redux-boilerplate.git my-bigchaindb-project and
cd my-bigchaindb-projectNow you can set your remotes to your local app and so forth
Supports BigchainDB Server v1.0
You must have docker, docker-compose (and make) installed.
These versions or higher should work:
docker:v1.13.0docker-compose:v1.7.1
To spin up the services, simple run the make command, which will orchestrate docker-compose
makeThis might take a few minutes, perfect moment for a ☕!
Once docker-compose has built and launched all services, have a look:
docker-compose ps Name Command State Ports
------------------------------------------------------------------------------------------------------------------------
mybigchaindbproject_bdb_1 bigchaindb start Up 0.0.0.0:49984->9984/tcp, 0.0.0.0:49985->9985/tcp
mybigchaindbproject_client_1 npm start Up 0.0.0.0:3000->3000/tcp
mybigchaindbproject_mdb_1 docker-entrypoint.sh mongo ... Up 0.0.0.0:32797->27017/tcp
Which means that the internal docker port for the API is 9984
and the external one is 49984.
The external ports might change, so for the following use the ports as indicated by docker-compose ps.
You can simply check if it's running by going to http://localhost:3000.
If you already built the images and want to restart:
make restartStop (and remove) the containers with
make stopNo make? Launch the services manually:
Launch MongoDB:
docker-compose up -d mdbWait about 10 seconds and then launch the server & client:
docker-compose up -d bdb
docker-compose up -d clientsee the js-bigchaindb-driver for more details