0.0.0-alpha.0 • Published 6 years ago

@entamecoin/domain v0.0.0-alpha.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

Entamecoin Domain Library for Node.js

Entamecoinのバックエンドサービスをnode.jsで簡単に使用するためのパッケージを提供します。

Table of contents

Usage

npm install @entamecoin/domain

Environment variables

NameRequiredValuePurpose
DEBUGfalseentamecoin-domain:*Debug
NPM_TOKENtrueNPM auth token
NODE_ENVtrueenvironment name
SENDGRID_API_KEYtrueSendGrid API Key
DEVELOPER_LINE_NOTIFY_ACCESS_TOKENtrue開発者通知用LINEアクセストークン
WAITER_SECRETtrueWAITER許可証トークン秘密鍵
WAITER_PASSPORT_ISSUERtrueWAITER許可証発行者
ORDER_INQUIRY_ENDPOINTtrue注文照会エンドポイント

DB接続サンプル

const entamecoin = require('@entamecoin/domain');

entamecoin.mongoose.connect('MONGOLAB_URI');
const redisClient = entamecoin.redis.createClient({
    host: '*****',
    port: 6380,
    password: '*****',
    tls: { servername: 6380 }
});

Code Samples

Code sample are here.

License

ISC