0.0.0-alpha.18 • Published 6 years ago

@mocoin/domain v0.0.0-alpha.18

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

Mocoin Domain Library for Node.js

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

Table of contents

Usage

npm install @mocoin/domain

Environment variables

NameRequiredValuePurpose
DEBUGfalsemocoin-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 mocoin = require('@mocoin/domain');

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

Code Samples

Code sample are here.

License

ISC