Linkedin: https://www.linkedin.com/in/walldba/
This app was built to monitor a cryptocurrency price and send a notification if the price had an oscillation. To create this solution, I used Serverless Framework, AWS Lambda, DynamoDB and SES. To avoid unnecessary charges on AWS, I chose use the Localstack to simulate AWS environment offline.
To install all packages use the command:
yarn install
To simulate AWS enviromennt offline using localstack:
docker compose up -d
To create the dynamoDb tables:
bash ./scripts/create-db-table.sh
To invoke functions locally:
yarn invoke:getPrice
yarn invoke:sendNotification
-
Configure AWS envinments:
- AWS config file:
[default] region=us-east-1 output=json
- AWS credentials file:
[default] aws_access_key_id=<YOUR_AWS_ACCESS_KEY> aws_secret_access_key=<YOUR_AWS_SECRET_ACCESS_KEY>
- AWS config file:
To deploy functions:
sls deploy