Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kejne/fridge-mate
A simple app to handle payments within internal groups
https://github.com/kejne/fridge-mate
aws aws-lambda go html javascript jquery serverless terraform
Last synced: about 13 hours ago
JSON representation
A simple app to handle payments within internal groups
- Host: GitHub
- URL: https://github.com/kejne/fridge-mate
- Owner: kejne
- License: mit
- Created: 2022-06-19T18:21:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T02:40:53.000Z (over 1 year ago)
- Last Synced: 2024-11-15T04:25:41.730Z (5 days ago)
- Topics: aws, aws-lambda, go, html, javascript, jquery, serverless, terraform
- Language: HCL
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fridge Mate
Do you have a fridge at work or in a club, selling stuff for internal use?
This is intended to be a simple program which can be used to facilitate this.I'm doing this with very limited time as a small project to learn some Golang amoung others, so it might take a while before anything comes up here, if ever ;)
## Ideas
- With account it should be very quick to choose an item
- No checkout-procedure - you can revert transactions instead
- No login = simply display price to pay (large)## Technical Ideas
- Use oauth2 for users. Integrate with auth0?
- Leverage AWS Lambda & Dynamodb and use static web page since it will be low & irregular traffic
- Continue!### Detailed technical setup ideas
- S3 & CloudFront to serve static page
- jQuery to on client side fetch dynamic data like products
- Use AWS cognito to authenticate users
- API Gateway backed by AWS Cognito user pool as authorizer
- Lambdas to handle requests
- DynamoDb to handle inventory & transactions```plantuml
@startumlcloud "AWS" {
API - [Cogniton]
database "S3" {
[Static site]
}
Cloudfront -- [Static site]
[Static site] -up-> APInode "Lambdas" {
[PerformTransaction]
[GetTransactions]
}
API -down-> [PerformTransaction]
API -down-> [GetTransactions][GetTransactions] -down-> DynamoDb
[PerformTransaction] -down-> DynamoDbdatabase "DynamoDb" {
}
}@enduml
```