├── .gitignore ├── Front ├── dashboard │ ├── error.html │ ├── index.html │ ├── narrow.css │ ├── refresh.js │ └── vote.css └── votes │ ├── controller.js │ ├── index.css │ └── index.html ├── Lambdas ├── aggregate-votes │ ├── app.js │ └── serverless.yml └── receive-vote │ ├── app.js │ ├── package-lock.json │ ├── package.json │ └── serverless.yml ├── README.md ├── Terraform ├── dynamoDBAgregateVotes.tf ├── dynamoDBVotes.tf ├── outputs.tf ├── s3StaticWebsite.tf ├── state.tf └── vars.tf └── run.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # package directories 2 | node_modules 3 | node_modules/* 4 | jspm_packages 5 | 6 | # Serverless directories 7 | .serverless 8 | 9 | #terraform 10 | *.tfstate* 11 | *.tfvars 12 | *.terraform/ 13 | 14 | *Icon* -------------------------------------------------------------------------------- /Front/dashboard/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |We're sorry, something went wrong.
44 |Demo created for AWS Startup Collection on Medium.
49 |This is a simple demonstration of Lambda, a compute service from AWS that runs your code in response to events.
35 |Lambda monitors a DynamoDB table, which is populated with votes generated by texting RED, BLUE, or GREEN to a phone number provided by our friends at Twilio. 44 | When the table is updated, Lambda invokes code to query the table and aggregate the votes, which are used to create the graph above. Read more at https://medium.com/aws-activate-startup-blog.
45 |