A solo freelancer can spend a week preparing a mobile build before a client has entered a single useful record. I would start with an installable, local-first web app instead: it needs no server, account system, or store approval to prove the workflow. That choice has a limit. If the job depends on native APIs or store distribution, switch to React Native before building the interface twice.
A working offline record beats an empty native shell
Define “working” narrowly: on a phone, you can add a job, close the app, reopen it, and still see that job without a connection. A job can be a title now; attachments, accounts, and synchronization are separate promises. This boundary matters because a server-free app cannot recover a lost phone’s data or make two devices agree. Tell the client that before calling the first version complete.
PWA or React Native When Each Wins on a Solo Budget makes the platform decision worth examining, but I would give the PWA the first working day by default because a URL removes signing and store submission from the initial test. The exception is a requirement you can demonstrate now: a native API unavailable to the web implementation, an existing app-store audience, or a client contract that explicitly requires a store install. “It might need an app later” is not such a requirement because the first record can validate the workflow without deciding distribution.
The explicit comparison is Vite PWA versus Expo React Native. Vite wins when a browser install and local storage meet the acceptance test; its hosting can start at $0 on a free static-hosting tier, although that tier has limits and the app has no automatic cross-device backup. Expo wins when a tested native requirement or store delivery is non-negotiable; local preview can start without paid infrastructure, but builds, device testing, and store administration add work. Apple publishes a $99-per-year Developer Program membership price for store distribution, so “free to prototype” must not be mistaken for “free to ship on iOS.”
I would not create a shared backend, authentication, or a synchronization queue on day one, because each introduces failure cases that the one-device acceptance test does not require. Put those items in the estimate as later milestones. For the first milestone, write down three checks: add a record, retain it after restart, and display it offline. Those checks give the client something observable rather than an architectural promise.
One local record can establish the whole project
Install Node.js 24 LTS and npm, then run npm create vite@latest pocket-jobs — –template react-ts. Enter the new directory and run npm install, followed by npm install idb. Vite supplies the development server and production build; React and TypeScript come from the template. The idb library is a small interface to the browser’s IndexedDB API, which suits records better than localStorage because IndexedDB supports structured data and asynchronous operations.
Replace src/main.tsx with the following code, saved as src/main.ts, and remove the old src/main.tsx. Update index.html to load /src/main.ts. This deliberately uses the Vite project without a React component: one form is enough to verify persistence before adding interface state. The IndexedDB schema number 1 is the migration value you control; raise it only when a later release changes the stored shape.
import { openDB } from 'idb';
const db = await openDB('jobs', 1, {
upgrade(db) { db.createObjectStore('items', { keyPath: 'id' }); }
});
document.querySelector<HTMLDivElement>('#app')!.innerHTML =
'<form><input required><button>Add</button></form><ul></ul>';
const form = document.querySelector('form')!, input = document.querySelector('input')!, list = document.querySelector('ul')!;
async function render() { list.replaceChildren(...(await db.getAll('items')).map(item => {
const li = document.createElement('li'); li.textContent = item.title; return li;
})); }
form.addEventListener('submit', async e => {
e.preventDefault(); await db.put('items', { id: crypto.randomUUID(), title: input.value });
input.value = ''; await render();
});
void render();
Run npm run dev, open Vite’s local address, add a job, and reload. The record should remain because db.put writes it to IndexedDB, while render reads it back on each load. The crypto.randomUUID() call gives each record an identifier without a server. If the form fails, use the browser console before changing frameworks: a missing entry-file reference or a missed idb installation is more likely than a platform problem at this stage.
Make one more manual check before adding features: enter a title containing angle brackets, then reload. It should appear as text because the list item uses textContent, not record data inserted through innerHTML. This is a useful boundary for client-entered text; it does not replace validation if records are later sent to a server. Keep the example’s lack of editing and deletion visible in the milestone description rather than quietly treating a persistence proof as a finished job manager.
Offline installation requires a production build, not a localhost screenshot
The app now retains records, but its JavaScript still needs a network connection on a fresh load. Install vite-plugin-pwa as a development dependency with npm install -D vite-plugin-pwa. In vite.config.ts, import VitePWA from that package and add VitePWA({ registerType: ‘autoUpdate’, manifest: { name: ‘Pocket Jobs’, short_name: ‘Jobs’, start_url: ‘/’, display: ‘standalone’, icons: […] } }) beside the existing React plugin. Supply actual PNG files in public and reference them in the manifest: use 192×192 and 512×512 pixel icons, the sizes specified by common installability checks. The plugin uses Workbox to generate the service worker that caches the production app shell; IndexedDB, not that cache, holds the jobs.
Run npm run build and npm run preview to test the production output. Open it once while online, add a record, and then switch Chrome DevTools’ Network panel to Offline. Reload. If the interface loads and the record remains, the service worker and IndexedDB have each done their distinct jobs. If the page fails to load, inspect DevTools’ Application panel for a registered service worker and cached assets. If the page loads with an empty list, inspect IndexedDB instead; changing cache settings will not repair a missing database write.
Use a 30-second offline reload as a test window you choose, not as a claimed performance result. Also run Lighthouse’s PWA checks to catch manifest or service-worker mistakes, but keep the manual reload as the acceptance test because a passing audit cannot prove your particular record survives. Test a second browser profile as a fresh installation, then return to the original profile: storage belongs to an origin and browser profile, so seeing an empty database in the new profile is expected, not successful synchronization.
Push the repository to GitHub and connect it to Cloudflare Pages as a static site. Set the build command to npm run build and the output directory to dist. Use the resulting HTTPS address for the phone test, because service workers require a secure context outside the localhost development exception. Keep start_url: ‘/’ only if the app is served at the domain root; a subpath deployment needs matching Vite base and manifest scope settings or installation can open the wrong URL. Hosting the static files does not create a backup: export or sync remains a separate, priced feature.
The phone test should decide whether Expo earns a place
On the client’s actual phone, open the HTTPS URL, add a record, install the app through the browser’s available install or Add to Home Screen action, and repeat the offline reload. Record the browser, operating system, and result. Do not promise that every browser presents the same install prompt, because installation UI and service-worker behavior differ across platforms. If the client expects notifications, background uploads, or access to a particular device API, test that exact action now rather than treating a successful icon install as evidence it works.
Set a 200 KB compressed JavaScript target as your own performance budget, then inspect the production build and a phone’s Network panel before optimizing. It is a threshold to revisit, not a measured claim about this starter. React Native Development Tips for Faster Mobile Apps is useful once there is a React Native screen to time, but I would not apply mobile rendering advice to this PWA by analogy because its browser bundle and service-worker costs are different. Measure the first load and the offline reopen separately so a warm cache does not hide a slow first visit.
If the phone test exposes a genuine native requirement, start a separate Expo proof with npx create-expo-app@latest pocket-jobs-native and npx expo start. Use Expo Go on a physical device to check a supported feature quickly; use an Expo development build when the required native library is not included in Expo Go. Do not recreate the entire PWA first. Implement the single failing action and verify it on the target phone, because that result justifies the added build and distribution work. For Android store delivery, Google publishes a $25 one-time Play Console registration fee; confirm current terms before quoting either store fee to a client.
Keep one written decision after that test: stay with the hosted PWA if all three acceptance checks pass, or fund the Expo build if a required action demonstrably fails. That decision is reversible while the data model is only a job title. It becomes expensive after adding platform-specific screens, so make it with a phone in hand rather than with a feature wish list.
The next hour should produce one retained job
Create the Vite project, install idb, and enter one real job from the client’s workflow. Reload before touching the manifest or a hosting dashboard. If the job survives, you have the smallest useful foundation and a clear next test: make that same screen reopen offline on the client’s phone. If it does not survive, fix the local write first; distribution cannot rescue missing data.


