storj-service-storage-models

2019-12-02

storj-service-storage-models是什么

什么是storj-service-storage-models,common storage models for various storj services

storj-service-storage-models使用教程帮助文档

Notice: Development on this repo is deprecated as we continue our v3 rearchitecture. Please see https://github.com/storj/storj for ongoing v3 development.

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.


上一篇:storj-admin-cli
下一篇:storj-service-error-types
相关文章

首次访问,人机识别验证

扫描下方二维码回复 1024 获取验证码,验证完毕后 永久 无须验证

操作步骤:[打开微信]->[扫描上侧二维码]->[关注 FedJavaScript 的微信] 输入 1024 获取验证码

验证码有误,请重新输入