MongoDB Storage Adapter
A storj-lib compatible storage adapter for
MongoDB, primarily used by storj-bridge.
Prerequisites
Installation
npm install storj-mongodb-adapter --save
Usage
var storj = require('storj-lib');
var MongoStorageAdapter = require('storj-mongo-adapter');
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/dbname', function() {
var adapter = new MongoStorageAdapter(mongoose);
var manager = new storj.StorageManager(adapter);
var renter = new storj.RenterInterface({
storageManager: manager,
});
});
License
This software is licensed under the terms of the GNU Lesser General Public
License, version 3 or later.