to stay up to date on the events of the financial world
The bot is build on a serverless architecture using AWS services.
The architecture is composed of 2 Lambdas:
- Telegram: webook to receive Telegram updates
- Calendar: responsible for fetching the events from the economic calendar (provided by investing.com), persisting them and sending reminders to subscribed users
a pair of DynamoDB tables to hold subscribers and events and a series of CloudWatch Event scheduled to perform events such updating the calendar and pushing upcoming events to subscribers.
All the details of the stack are outlined in stack/lib/ec-stack.ts
- Docker (some recent version)
In src
just run build.sh
, it should take care of preparing a Docker container, compiling the source code and packing the binaries for the deployment.
- Yarn 1.15+
The deployment phase is performed via a CDK script.
Move into the stack
and run:
yarn install
yarn build
then
export TELEGRAM=TOKEN_OF_YOUR_TELEGRAM_BOT
cdk deploy