This progressive web app lets a user add expenses and deposits to their budget on the go, with or without a connection.
Using IndexedDB, service workers and caching, this progressive web app lets business travellers add expenses and deposits to their budget on the go, with or without a network connection. Giving users a fast and easy way to track their money is important, but allowing them to access that information anytime is even more important.
Navigate into the repository folder on your local machine and open the built-in terminal. You will need Node.js installed to run this application.
- On the command line, type
npm ito pull the app's dependencies to your local. - Type
npm startto run the application locally. - Navigate to
http://localhost:3000to view the development server.
- Click the install icon in the browser navigator.
- Confirm the download and the browser window will close, opening instead as a standalone app.
- Open the browser's
Sharetab. - Scroll down and tap
Add to Home screen. - Confirm by tapping
Add. - A shortcut will be added to the homescreen.
-
Using the inline form at the top of the page, enter a new
Name of transactionand amount, then choose the submit type —Add Fundsfor a deposit andSubtract Fundsfor an expense. -
View charted data in the graph below.
-
To test offline functionality, open DevTools and navigate to the
Networktab.- Using the dropdown menu, select
Offlineto simulate a lack of network connection and refresh. - Enter a new transaction. The service worker and POST will throw errors, but the IndexedDB will pick up the slack. Navigate to the
Applicationtab. - On the leftside panel, expand
IndexedDB->budget->pending. You may need to refresh the IndexedDB to see the new pending transactions. - This is where we can see offline transactions queued.
- Using the dropdown menu, select
-
Return to the
Networktab and set the dropdown menu back toNo throttling, then refresh the page. -
The pending entries will now be added to the database and data cache.
| Mobile / Vertical View | Desktop / Landscape View |
|---|---|
![]() |
🔗 Links in Bio @katsign
This project is MIT licensed. © 2021

