Adding official DECA OrbitDB Database
This commit is contained in:
parent
e70994e89d
commit
ea45180523
4
index.js
4
index.js
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue