Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 723 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 723 Bytes

Responsible for sending an individual event to the key/value store.

This expects a query string with the follow query params:

  • ulid: The ULID for the session
  • food: The name of the food
  • correct: The string value t (or true) for correct.

It then transforms this data into the following JSON data that is sent to key/value:

{
    "ulid": "ULID",
    "food": "food name",
    "correct": true
}

Building

Run make build in this directory to build.

To serve, use the spin.toml file in the parent directory.

Manual Testing

If you cargo install rusty_ulid, then you can use this curl command to manually test:

curl localhost:3000/tally\?ulid=$(rusty_ulid)\&correct=TRUE\&food=fish