4.4.14 • Published 1 year ago

arya-sdk v4.4.14

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Arya SDK

Installation Instructions

  1. Clone the repository
git clone https://github.com/Arya-Works/arya-sdk
cd arya-sdk
  1. Install dependencies
npm install
  1. Create a new .env file in source folder. (Alternatively copy the env file from arya-server)
AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
  1. Create a new file workbench.ts in source folder.
touch src/workbench.ts
  1. Copy the following into workbench.ts
require('dotenv').config();
import { AryaSDK } from './index';

const aryaSdk = new AryaSDK()
await aryaSdk.init()
await aryaSdk.slackNotify("SDK is running")
  1. Run the workbench.ts file
npm run workbench
  1. Build the SDK and change the version in package.json
npm run build

Note: The config string is being pulled from AWS Parameter Store if you make any changes to the AryaSDKConfig you need to update the parameter store with the new config string.

Log into the AWS console and navigate to the Parameter Store. Find the parameter with the name ARYA_SDK_CONFIG and update the value with the new config string. Make sure the JSON string is valid.