Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
@startuml

cloud "AWS" {
API - [Cogniton]

database "S3" {
[Static site]
}
Cloudfront -- [Static site]
[Static site] -up-> API

node "Lambdas" {
[PerformTransaction]
[GetTransactions]

}
API -down-> [PerformTransaction]
API -down-> [GetTransactions]

[GetTransactions] -down-> DynamoDb
[PerformTransaction] -down-> DynamoDb

database "DynamoDb" {

}
}

@enduml
```