UNPKG

715 BJavaScriptView Raw
1var DocumentStore = require('ewd-document-store');
2var interface = require('nodem');
3var db = new interface.Gtm();
4var ok = db.open();
5var documentStore = new DocumentStore(db);
6var fs = require('fs');
7
8var text = fs.readFileSync('node_modules/qewd-ripple/data/contentStore.json', 'utf-8');
9var json = JSON.parse(text);
10
11var contentStore = new documentStore.DocumentNode('qewdContentStore');
12contentStore.setDocument(json);
13
14text = fs.readFileSync('node_modules/qewd-ripple/data/clinicalStatements.json', 'utf-8');
15json = JSON.parse(text);
16var clinicalStatements = new documentStore.DocumentNode('rippleClinStatements');
17clinicalStatements.setDocument(json);
18
19console.log('done');
20
21db.close();