← Projects

ihya

One Sunnah at a time.

Role
Founder & Engineer
Period
2026–present
Status
Private Android beta · pre-launch
Link
website

React Native · TypeScript · Java · Spring Boot · PostgreSQL · AWS · Terraform


At a glance

The app helps Muslims practise and gradually build a relationship with the Sunnah: one practice a day, with its source and a short explanation, and a quiet record of the days kept.

I built the mobile app, API, infrastructure, CI/CD pipeline, authentication system and production deployment end to end.

Case study

What I built

Mobile
React Native + Expo · TypeScript · Expo Router · TanStack Query · Secure token storage · Push notifications
API
Java 25 · Spring Boot 4 · PostgreSQL 16 · Flyway migrations · JWT authentication · Password reset via Amazon SES · Rate-limited sign-in
Infrastructure
AWS, all in Terraform · ECS · RDS · CloudFront · SSM Parameter Store · CloudWatch alarms
Web
React · Vercel

How it ships

Pull request
Tests and static checks → Merge dev into main
Production
Docker image tagged with the commit → ECS rolling deployment → Health check over HTTPS → Automatic rollback if unhealthy
Security
GitHub Actions OIDC → Short-lived AWS credentials → No AWS keys stored in GitHub

The API runs 370 tests against disposable PostgreSQL instances in Docker. The mobile app runs type checks, linting, 210 Jest tests and a bundle check. The Terraform is checked for formatting, validity, lint and security misconfigurations. Only commits merged through a pull request can deploy.

Engineering decisions

ECS on EC2 instead of Fargate or App Runner

Why
The current workload didn't justify the extra cost and abstraction of a serverless container platform.
Tradeoff
I own the server's capacity and maintenance.

Custom JWT authentication instead of Cognito or Auth0

Model
Access tokens are short-lived. Refresh tokens are opaque, stored hashed, and rotated on every use.
Reuse
Presenting a refresh token that has already been used revokes all of that user's sessions, to limit the damage of a stolen token.

HTTPS through CloudFront

What
CloudFront serves the API over HTTPS without a custom domain, and refuses plain HTTP rather than redirecting it, so credentials never cross the network in the clear first.

Rate limiting and accepted risks

What
The rate limiter uses the client IP that CloudFront forwards. The app trusts that header only because the load balancer accepts traffic from CloudFront alone.
Accepted
Findings I accept, such as having no web application firewall yet, are documented next to the code with the reason.

Problems worth telling

HTTPS migration without breaking existing testers

Problem
Existing beta builds called the API over plain HTTP at the load balancer's address.
Approach
I put CloudFront in front first while the old address kept working, released a new app build that used HTTPS, and locked the load balancer to CloudFront only after every tester had moved.
Unexpected issue
Behind CloudFront, every request appears to come from a CloudFront server, so the rate limiter had to switch to CloudFront's client-IP header. That header is only trustworthy once CloudFront is the only way in, so the app change and the infrastructure lock had to ship together.
Lesson
Infrastructure changes can quietly change application-level security assumptions.

Expo build fingerprint mismatch

Problem
A build failed because my machine and Expo's build servers computed different runtime fingerprints, and over-the-air updates only reach builds whose fingerprint matches.
Investigation
The difference came from a config value that depended on a variable only the build server sets, and a hand-edited file inside node_modules.
Fix
I keyed the setting on a value both sides share and reinstalled dependencies from the lockfile. The two fingerprints then matched exactly.
Lesson
Build reproducibility matters when native compatibility decides whether an update can ship safely.

Where it stands

The app is in a private Android beta, with testers using the production API and infrastructure. The next stage is public release: privacy documentation, store listings, and a staged rollout.

The code is private, but I'm happy to walk through the architecture and implementation in an interview.