Adding official DECA OrbitDB Database

This commit is contained in:
David E. Perez Negron Rocha 2020-06-12 16:30:25 -05:00
parent e70994e89d
commit ea45180523
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ const IpfsClient = require('ipfs-http-client');
const OrbitDB = require('orbit-db');
//Instance of ipfs locally in ipfs daemon
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 createReplicate() {
@ -39,4 +39,4 @@ async function createReplicate() {
}
//Call the async function
createReplicate();
createReplicate();

View File

@ -6,7 +6,7 @@ let moment = require('moment');
let hasher = require('node-object-hash')
const fs = require('fs');
const addressDB = 'decaCCDB';
const addressDB = '/orbitdb/zdpuAykPJ4qtBg2toS2vxr5eaPfGEBJmvGerM7V7x8qn5c8hW/decaCCDB';
//A instance of ipfs locally in ipfs daemon
const ipfs = IpfsClient('http://localhost:5001');