Des cadeaux qui font plaisir
The family gift list, where everyone can reserve and nobody needs an account.
- Une lampe frontale 12 €Réservé par Mamie
The job
- When
- the family asks what the kids would like for Saint-Nicolas,
- I want
- one page where each of them can reserve a gift,
- So
- nothing is bought twice and I stop being the switchboard.
What it does
One page, built for phones, with a list per person. A grandparent opens it, taps a gift, types a first name, and the gift is taken. Bigger presents can be shared between several people. If someone has their own idea, they can say so, so the rest of the family knows.
The first visit starts with a welcome and a short video of how it works, because the people using it did not ask for a new app.
How it is made
- A Worker and a database, nothing else. One Cloudflare Worker with a D1 database. The Worker creates its own tables on first run. There is no framework and no build step.
- Content is one file. The gifts, the occasions and the people live in a single JSON catalogue. Adding a scooter helmet is a commit, and the site is updated about a minute later.
- Reservations are sacred. They live in the database, and a redeploy never touches them. When Christmas follows Saint-Nicolas, gifts already given stay taken and the rest roll over.
- Rules a family understands. Only the name that reserved a gift can release it. A parent has an admin page with the full log for everything else.
Worth noticing
It is the smallest thing on this page, and probably the one with the most users per line of code. Not every job needs a product. Some need 209 lines of Worker.