Module 3 · Your tool

A simple app with data: list, form and save

Lesson 7 of 12 9 min lesson Updated on October 30, 2026
Progress in the course58%

In this lesson

A website shows. A tool stores.

Now we leave the public website and move on to the internal tool: the thing the team uses every day and that today lives in a notebook. The first step is a simple register, with a form, a list and a save button.

Where the data lives

So far the browser has only read files. Now it reacts: the person types, clicks "add" and something happens. That "something" is JavaScript, the third piece of the page. The big question for every app with data is: where does the data live?

PlaceWhat it is likeGood for
In the browserEach site's own drawer (localStorage). No server, no cost.One counter or one person
In a fileThe app exports and imports a fileBackup and a bridge to spreadsheets
On a serverA database in the cloud, with loginA team in several places (outside this course)

We will use the first two together: store in the browser and export to a file.

Careful

Other people's sensitive data does not go in the browser. A name and a phone number are already personal data. Health data, CPF numbers (Brazil's taxpayer ID) and financial data call for a professional.

The drawer has three rules

What the pros know

In Safari, the drawer has an expiry date. Apple deletes all the storage a site writes, localStorage included, after seven days of Safari use in which the person does not interact with that site. If you save only in the browser, you can lose everything in a tool you use once a month. Web apps added to the iPhone home screen have their own count and are not affected. The moral: exporting is not optional, and a tool you rarely use needs a backup in a file.

The request to the AI

The request follows the course pattern: context, what it does, technical rules, what it does NOT do and an explanation at the end. The "does NOT do" part matters: without it, the AI sometimes adds a phone field "to make things easier" or sends the data to some service.

Real example

A kitchen that sells packed lunches wrote its orders in a notebook and counted what was left at the end of the day. The owner asked for a page with a form (customer, dish, quantity, time) and a list that adds up the quantities per dish. It lives on the kitchen tablet, with an export every Friday.

Test with made-up data

Add five made-up orders and run this set of tests:

  1. Persistence: close everything and open it again. Are all five still there?
  2. Sum: does the summary match what you entered?
  3. Delete: delete one from the middle. Do the list and the sum update?
  4. Export: does the file download and open in a readable form?
  5. Empty field: does the app warn you, or does it add a blank row?

The AI builds the happy path. The odd cases (an empty field, a negative number) are the ones you have to ask for.

Practice · 10 min

  1. Create a new folder, open the tool in it and paste the request below, adapted to your business.
  2. Add five made-up records and run the set of tests.
  3. Ask for the fixes, one at a time, and save a copy as index-v1.html.
Context: I have [business] and I want a simple internal tool, used on a single tablet. Create an index.html with a form (customer, dish, quantity, time), an "add" button, a list with a delete button, a summary adding up the quantity per dish and an "export" button that downloads a file. Everything in one file. Save to localStorage. No libraries, no internet. It does NOT send anything to a server, does NOT ask for a login, does NOT store phone numbers or addresses. Do not accept an empty field. Afterwards, explain to me where it saves, where it builds the list and how to test it.
Deliverable: the register working, with five made-up records that survive closing and reopening, and the exported file open in the editor.

Summary

Sources

Read on October 30, 2026.

  1. WebKit. Full Third-Party Cookie Blocking and More: seven-day limit on storage written by scripts.

Lesson quiz

Three situations to apply what you learned.

Lesson 7 of 12

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp