Case study · Mobile app
WealthFlow
A mobile personal finance app where people log spending, set monthly budgets and track savings goals.
- React Native
- Expo
- TypeScript
- Supabase
- PostgreSQL
A project by Youssef Manssouri
- What I built
- Built React Native screens and Supabase services, including user-scoped RLS and a database RPC for savings contributions.
- Verifiable result
- The repository documents 114 Jest tests across 11 suites. Source, screenshots and Android build instructions are available.
Status, audience and limitations
- For whom:
- Individuals tracking transactions, budgets and savings goals.
- Status:
- Independent React Native application with a showcase website and reproducible Android preview build instructions.
- Limitations:
- The website is not the mobile app. Preview APK links expire; no current downloadable APK is advertised. Finances are entered by users, without bank connections or financial advice.
The problem
A finance app holds sensitive data, but a mobile app's code runs on the user's phone and cannot be trusted to keep users apart. Money maths also goes wrong quietly: floating-point rounding and different currency decimals create small errors that add up. I wanted the database to enforce privacy and the calculations to be tested on their own.
What I built
Key decisions
Privacy is enforced in the database
PostgreSQL row-level security policies tied to the signed-in user cover all six tables, so the database itself refuses rows that belong to someone else.
Trade-off: Protection is only as good as the policies; changing them, or using privileged keys, needs review and tests.
Money maths lives in plain, tested functions
Balances, budget thresholds, savings progress and currency formatting (0 decimals for JPY, 2 for USD) are pure functions outside the screens, covered by Jest tests.
Trade-off: Screens have to call shared utilities instead of computing values inline, which adds a layer.
Patches instead of forks for native build issues
Build problems in React Native 0.76 dependencies are fixed with patch files applied automatically on install, so the project keeps using the official packages.
Trade-off: Each patch has to be checked again whenever the patched package is upgraded.
What I learned
On mobile, the client can never be the security boundary; the database has to be. Getting a reliable Android build also turned out to be real engineering work, not an afterthought, and keeping financial logic separate from the screens is what made it testable.