This package has been deprecated

Author message:

This package is no longer maintained.

storj-mongodb-adapter

10.0.0 • Public • Published

MongoDB Storage Adapter

Build Status

A storj-lib compatible storage adapter for MongoDB, primarily used by storj-bridge.

Prerequisites

  • MongoDB
  • Storj Core

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,
    // ...
  });
 
  // That's it! The `renter` object now uses MongoDB to store
  // contract data!
});

License

This software is licensed under the terms of the GNU Lesser General Public License, version 3 or later.

Readme

Keywords

Package Sidebar

Install

npm i storj-mongodb-adapter

Weekly Downloads

3

Version

10.0.0

License

LGPL-3.0

Unpacked Size

15 kB

Total Files

7

Last publish

Collaborators

  • piginthemud
  • phutchins
  • bryanchriswhite
  • dylanlott
  • npm