The StellarTerm comes with APIs to compile Stellar data to make it easier and faster for clients to consume.
See it in action: https://api.stellarterm.com/v1/ticker.json
First, set up Serverless. Docs at: https://github.com/serverless/serverless
# install nvm (Node version manager): https://github.com/creationix/nvm#installation
nvm install 6.10
nvm use 6.10
npm install -g serverless
./testTicker.sh
NOTE: You should do this on a new AWS account since the clean.sh is destructive and serverless wants full admin powers. Developers of StellarTerm are not resposible for any damage done to your AWS account as this project is licensed under the Apache-2.0 license and is provided "AS-IS" without warranty.
First, Get AWS IAM keys for the account you want to run the StellarTerm API on.
# Install the AWS cli
# If you can't use brew: https://docs.aws.amazon.com/cli/latest/userguide/installing.html
brew install awscli
# Save your AWS IAM keys into a profile using the aws configuration wizard
aws configure --profile stellarterm
Create a S3 bucket on your AWS account using the AWS management UI. Then, copy setEnvironment.example.sh
to setEnvironment.sh
and make your changes necessary.
nvm use 6.10
source setEnvironment.sh
./deploy.sh
All scripts use the AWS profile stellarterm
clean.sh
: Deletes all AWS Lambda stuffs from account configureddeploy.sh
: Builds and deploys to AWS Lambda. It also starts the schedulingtrigger.sh
: Trigger the job remotelygetLogs.sh
: Gets ALL the logstestTrigger.sh
: Run the ticker code locally for testing and development