1.0.0 • Published 3 years ago

@fizz.js/node-alibaba-cloud v1.0.0

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

@fizz.js/node-alibaba-cloud

This is an Alibaba Cloud library for express.

install

add dependencies into package.json and run yarn install

configure

please put alibabaCloud config into config/${env}.json

{
  "alibabaCloud": {
    "client": {
      "endpoint": "https://business.ap-southeast-1.aliyuncs.com",
      "apiVersion": "2017-12-14",
      "accessKeyId": "",
      "accessKeySecret": ""
    },
    "request": {
      "timeout": 10000,
      "method": "POST",
      "formatAction": true,
      "formatParams": true
    }
  }
}

or put ALI_ACCESS_KEY_ID, ALI_ACCESS_KEY_SECRET, ALI_ENDPOINT, ALI_API_VERSION, ALI_OWNER_ID into your .env file.

ALI_ACCESS_KEY_ID="XXXXXXXXXX"
ALI_ACCESS_KEY_SECRET="XXXXXXXXXX"
ALI_ENDPOINT="XXXXXXXXXX"
ALI_API_VERSION="XXXXXXXXXX"
ALI_OWNER_ID="XXXXXXXXXX"

ALI_OWNER_ID is just Alibaba Cloud Account No.This parameter is not mandatory, but it is using for unit test.

test

yarn test

coverage

yarn cover

build

yarn build

docs

yarn docs