- Clone the repo
$ git clone git@github.com:leapdao/leap-stats.git
- Install dependencies
$ cd leap-stats
$ yarn install
-
Setup
serverless
local environment: https://serverless.com/framework/docs/getting-started/ -
Setup offline DynamoDB
$ serverless dynamodb install
- Run the local server
$ serverless offline start
- Configure AWS Lambda account using
aws-cli
as per the instructions in the link: https://serverless.com/framework/docs/providers/aws/guide/credentials#setup-with-the-aws-cli
Deploy for mainnet:
yarn deploy:mainnet
or custom deployment, you can specify the provider and stage:
$ PLASMA_PROVIDER="wss://mainnet-node1.leapdao.org:1443" serverless deploy