10.0.0 • Published 8 years ago

storj-mongodb-adapter v10.0.0

Weekly downloads
3
License
LGPL-3.0
Repository
github
Last release
8 years ago

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.

10.0.0

8 years ago

9.0.0

9 years ago

8.0.0

9 years ago

7.0.1

9 years ago

7.0.0

9 years ago

6.0.0

9 years ago

5.0.0

9 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.0.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago