Nimble Porridge Muncher

    This package has been deprecated

    Author message:

    This package is no longer maintained.

    storj-service-storage-models

    11.0.1 • Public • Published

    Storj Service Storage Models

    Build Status Coverage Status GitHub license

    Common storage models for various Storj services

    npm install storj-service-storage-models --save
    
    var Storage = require('storj-service-storage-models');
    var db = new Storage(
      'mongodb://127.0.0.1:27017/storj-bridge-database-name',
    {
      auth: {
        user: 'myuser',
        pass: 'mypassword'
      },
      mongos: {
        ssl: true
      }
    },
    {
      logger: myAwesomeLogger
    });
     
    db.models.User.findOne({ email: 'gordon@storj.io' }, function(err, user) {
      if (err) {
        console.error(err.message);
      } else {
        console.info(user);
      }
    });

    Coinpayments Integration

    You'll have to set Coinpayments environment variables CP_PUBLIC_KEY and CP_SECRET_KEY in order to get coinpayments client working with the payment processor adapter.

    Billing Specific

    If using billing functionality, be sure to include your own .env file with necessary environment variables.

    Install

    npm i storj-service-storage-models

    DownloadsWeekly Downloads

    0

    Version

    11.0.1

    License

    LGPL-3.0

    Unpacked Size

    275 kB

    Total Files

    76

    Last publish

    Collaborators

    • piginthemud
    • phutchins
    • bryanchriswhite
    • dylanlott
    • npm