Code for minimal express application which queries MongoDB instance of BigchainDB network underlying OEHU, returning a downloadable dataset according to the parameters specified by the user.
Early work - more TBA.
npm install --save.- Create
.envfile in root directory and set environment variables for:
⋅ PORT
⋅ WEBPORT - Create
config.jsonfile in root directory and set connection string for Mongo instance for use in production. - Make sure you're connected either to local MongoDB, or BigchainDB Mongo instance if you have access. Create this cron on the server to automatically start a SSH tunnel to a bigchaindb node if you have access:
crontab -e
* * * * * nc -z localhost 27018 || ssh -N -L 27018:localhost:27017 root@188.166.15.225 &
If not then just make sure you have a local mongo instance running. Interested parties can get in touch to get a recent mongodump of a db instance.