@fizz.js/node-alibaba-cloud
v1.0.0
Published
node-alibaba-cloud
Downloads
1
Readme
@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