Merge branch 'develop' of gitlab.com:deca-currency/carboncreditsbacklog into develop

This commit is contained in:
Oscar Martinez 2020-06-12 17:11:52 -05:00
commit eb366f1157
4 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/node_modules /node_modules
/orbitdb /orbitdb
/receipts /receipts
/proyectsReceipts
package-lock.json package-lock.json
.env .env

View File

@ -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();

View File

@ -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');

View File

@ -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"