Examples
Release v0.4.0
Complete packages you can check, test and run, each checked with una v0.4.0. Read them in this order, from the smallest.
- hello: The smallest Una package: one function that prints one line.
- wordfreq: Counts how often each word of a line occurs, and prints the counts as one JSON object.
- pantry: A kitchen pantry: items with amounts, a shopping list of what ran out, and totals per measure.
- greenhouse: A greenhouse vent controller: it reads a thermometer and opens a roof vent to match, and it traces its main rule to a regulation.
- journal: A private journal: it reads today's entry from a file and prints how long it is, never what it says.
- toolshelf: A community tool shelf: members check tools out for a number of days and bring them back, under two house rules.
- shortlinks: A link shortener: it stores short slugs that lead to longer links, and checks each slug once, where it enters the program.
- events: Event check-in: attendees check in by phone number, the phone is used only through a keyed hash, and every check-in is audited.
- health: A health endpoint: an HTTP server that answers GET /health with 200 ok, and every other request with 404.
- metronome: A metronome: a program that plays one beat every half second, tick on the first beat of each bar of four and tock on the others, until it is stopped.