websockets, dynamo streams: https://spin.atomicobject.com/2021/01/06/websockets-aws-dynamodb-updates/
simple websocket config: https://www.mtechzilla.com/blogs/how-to-develop-a-serverless-real-time-application-using-node-js-aws-and-websockets
docker run -p 8000:8000 amazon/dynamodb-local
- create local table:
aws dynamodb create-table --table-name pokertool --attribute-definitions AttributeName=id,AttributeType=S --key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST --endpoint-url http://localhost:8000
- list table content:
aws dynamodb execute-statement --statement "SELECT * FROM pokertool" --endpoint-url http://localhost:8000
invoke local function with:
DOCKER_HOST="unix://$HOME/.colima/docker.sock" sam local invoke createRoom
./rundev.sh
- as soon the user opens the page: he must set his/her name.
- then the user can create a new "room"
- share the link of the new room
- when a user enters on a shared room, he is requested to insert his name then connects to the selected room.
- every user can see other users in the room
- the user who creates the room can add a new card to estimate by giving the card a name
- all the users are then provided the name of the card to estimate and are presented with some values
- each user can select one value
- every user can see who has voted
- when the root user wants, can reveal all the cards.
- every user now see the cards values from others.