Skip to content

endroca/winnin-assignment

Repository files navigation

Reddit consumer

Project developed for a proof of concept

Setup

aws configure

cd src
cd lambdaFirstEndPoint
npm run deps
cd ..
cd lambdaGetFromAPI
npm run deps
cd ..
cd lambdaSecondEndPoint
npm run deps
cd ..
cd ..

terraform init
terraform plan
terraform apply

# First invocation or wait for the first schedule
aws lambda invoke --function-name get_data_from_external_api out --log-type Tail --query 'LogResult' --output text |  base64 -d

Shutdown

terraform destroy

Request

GET firstEndPoint/?initial_date=2017-01-01 00:00:00&final_date=2021-06-29 03:00:00&order=ups
Parameter Type Description
initial_date string Required, YYYY-mm-dd hh:mm:ss
final_date string Required, YYYY-mm-dd hh:mm:ss
order string Required, ups or num_comments
GET secondEndPoint/?order=ups
Parameter Type Description
order string Required, ups or num_comments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published