Skip to content

WooodHead/FootballPoll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football Poll

A serverless application which uses the Amazon Web Services (Lambda, DynamoDB, CloudWatch, API Gateway) as the backend and the frontend is hosted on GitHub pages.

Official banner

Inspired by Doodle, this application is recreating the poll after it ends (the new poll lasts one week and after that, the new event day&time are the same as in the previous poll, only the admin can change this).
At the end of the poll, if there aren't enough participants, all participants will be deleted because that means the poll was canceled (the poll could have at most 2 participants less than the needed participants, e.g. if the poll needs 12 participants, then the poll won't be canceled if there are at least 10 participants available).
This application is saving the old polls and everyone can access them, also there is a simple statistic: in how many events has each player participated and how many friends has each player invited.

App workflow

Project Architecture

The project is composed of 3 parts: database, functions and web site.

Project architecture

Database (Amazon DynamoDB)

Located in src/dynamodb directory.
More info about the database in the README file.

Functions (AWS Lambda)

Located in src/lambda directory.
More info about the lambdas in the README file.

Web site

Located in src/site directory.
The web site is fully responsive and mobile-friendly. It's hosted on GitHub, from the gh-pages branch.

Tech/frameworks

Amazon Pricing

Only for the services used in this application, EU-Central-1 region (Frankfurt).

API Gateway

2 types of pricing: requests and data out

  • requests (12 months free - 1 million requests per month) - $3.5 per 1 million requests monthly (1 request = $0.0000035)
  • data out (not free) - $0.09 per 1GB response payload monthly (1KB = $0.0000009) (100 000 calls * 5KB response body = 0.5GB data out)

Lambda

2 types of pricing: requests and memory allocation (execution time)

  • requests (always free - 1 million requests per month) - $0.20 per 1 million requests monthly (1 request = $0.0000002)
  • memory allocation (always free - 400 000 GB-seconds per month up to 3.2 million seconds of compute time per month) - $0.00001667 for every GB-second

CloudWatch

1 type of pricing: events

  • execution/invoke of event (not free) - $1 per 1 million events (1 event = $0.000001)

DynamoDB

3 types of pricing for provisioned capacity: storage, RCU and WCU (enough to handle up to 200 million requests per month)

  • storage (always free - 25GB) - $0.306 per GB-month
  • RCU (always free - 25 units per month) - $0.0001586 per RCU per hour (for items up to 4 KB in size, one RCU for each strongly consistent read per second, and one-half of an RCU for each eventually consistent read per second)
  • WCU (always free - 25 units per month) - $0.000793 per WCU per hour (for month with 30 days 0.000793*720 = $0.57096)(for items up to 1 KB in size, one WCU can perform one standard write request per second)

Calculators

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

About

A serverless poll application which uses Amazon Web Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.8%
  • Python 16.8%
  • HTML 5.1%
  • CSS 2.3%