forked from DECA/carboncreditsbacklog
Merge branch 'develop' of gitlab.com:deca-currency/carboncreditsbacklog into develop
This commit is contained in:
commit
eb366f1157
|
@ -1,5 +1,6 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
/orbitdb
|
/orbitdb
|
||||||
/receipts
|
/receipts
|
||||||
|
/proyectsReceipts
|
||||||
package-lock.json
|
package-lock.json
|
||||||
.env
|
.env
|
||||||
|
|
4
index.js
4
index.js
|
@ -3,7 +3,7 @@ const IpfsClient = require('ipfs-http-client');
|
||||||
const OrbitDB = require('orbit-db');
|
const OrbitDB = require('orbit-db');
|
||||||
//Instance of ipfs locally in ipfs daemon
|
//Instance of ipfs locally in ipfs daemon
|
||||||
const node = IpfsClient('http://localhost:5001');
|
const node = IpfsClient('http://localhost:5001');
|
||||||
const addressDB = 'decaCCDB';
|
const addressDB = '/orbitdb/zdpuAykPJ4qtBg2toS2vxr5eaPfGEBJmvGerM7V7x8qn5c8hW/decaCCDB';
|
||||||
|
|
||||||
//Async function to replicate or create a doc database
|
//Async function to replicate or create a doc database
|
||||||
async function createReplicate() {
|
async function createReplicate() {
|
||||||
|
@ -39,4 +39,4 @@ async function createReplicate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Call the async function
|
//Call the async function
|
||||||
createReplicate();
|
createReplicate();
|
||||||
|
|
|
@ -7,7 +7,7 @@ let hasher = require('node-object-hash')
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const addressDB = 'decaCCDB';
|
const addressDB = '/orbitdb/zdpuAykPJ4qtBg2toS2vxr5eaPfGEBJmvGerM7V7x8qn5c8hW/decaCCDB';
|
||||||
|
|
||||||
//A instance of ipfs locally in ipfs daemon
|
//A instance of ipfs locally in ipfs daemon
|
||||||
const ipfs = IpfsClient('http://localhost:5001');
|
const ipfs = IpfsClient('http://localhost:5001');
|
||||||
|
|
|
@ -21,7 +21,7 @@ case "$choice" in
|
||||||
*) echo "no option selected";;
|
*) echo "no option selected";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
receiptsRoute=./receipts
|
receiptsRoute=./proyectsReceipts
|
||||||
echo ""
|
echo ""
|
||||||
echo "IPFS GET(Download) DECA's Carbon Credits Receipts?:"
|
echo "IPFS GET(Download) DECA's Carbon Credits Receipts?:"
|
||||||
|
|
||||||
|
@ -40,3 +40,4 @@ case "$choice" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "Bye ;) $USERNAME"
|
echo "Bye ;) $USERNAME"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue