1.2.8 • Published 3 years ago

avatarbox.sdk v1.2.8

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

avatarbox.sdk

nodejs sdk for avatarbox.io


Build Status Coverage Status GitHub tag (latest SemVer) license

NPM

Description

avatarbox.sdk is a specialized library designed to facilitate the development of application components such as avatarbox.publisher, avatarbox.worker, avatarbox.app and avatarbox.api. Unlike a general-purpose library, avatarbox.sdk is tailored to back-end resources situated within the AvatarBox Virtual Private Cloud (VPC) hosted on Amazon Web Services (AWS).

Checklist

SQS Queue Setup:

SettingDescription
Lambda Triggersavbx-worker a.
Nameavbx-worker-queue
TypeStandard

a. Use avatarbox.worker to define this Lambda function.

Installation

# clone repo
$ git clone https://github.com/mrtillman/avatarbox.sdk.git

# install dependencies
$ cd avatarbox.sdk && npm install

Next, find demo.env, rename it to .env and modify:

KMS_KEY_ID={YOUR-KMS-KEY-ID}
REGION=us-east-1
QUEUE_URL={YOUR-SQS-QUEUE-URL}
PUSHER_APP_ID=0000000
PUSHER_SECRET=xxxxxxxxxxxxxxxxxxx
PUSHER_KEY=11111112222222333333
PUSHER_CLUSTER=xx1

Tests

# unit tests
$ npm test

# test coverage
$ npm run test:cov

Usage

avatarbox.sdk defines a Gravatar client and a Twitter client. Both implement the AvbxClient interface.

import { 
  AvbxGravatarClient,
  AvbxTwitterClient
} from 'avatarbox.sdk';

const gravatarClient = new AvbxGravatarClient();
const twitterClient = new AvbxTwitterClient();

License

MIT

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.1.1

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago