Capstone: ship Smart Ledger
Assemble the product
This capstone starts empty—there is no fake ledger. A real user adds their own transactions. The app validates and normalizes input, stores amounts as agorot, persists locally, derives KPIs, filters rows, deletes entries, and exports a JSON backup.
The export is a real artifact. The storage is real browser storage. The only limitation is deliberate: this learning project never connects to a bank and never asks for banking credentials.
Instruções
Implement loadTransactions and saveTransactions using localStorage and JSON.
Dica: Restore [] on parse failure; stringify transactions on every mutation.
Onde é que isto entra?
// Assemble: load/save, validation, add/delete, derived KPIs, filter, and JSON export.Escreva na linha 5 — abaixo desse comentário, depois do código que já adicionou.
Validate and normalize input in createTransaction.
Render KPIs and filtered rows from the transactions array.
Implement add and delete flows, saving after each mutation.
Export a real JSON backup with Blob and URL.createObjectURL.
Seu Código
Descreva o que você quer construir para esta etapa e eu escrevo o código — depois clique em Aplicar para inseri-lo no seu editor. Esta etapa: Implement loadTransactions and saveTransactions using localStorage and JSON.