luka.gouvea
← projects
Personal project · 11/2025 – now

FinControl

Personal finance web app with authentication, onboarding and dashboards. Application and database run on separate VPSs.

Features

Architecture

The app VPS has no ports open to the internet. Public traffic to fin.luka.dev.br comes through a Cloudflare Tunnel to cloudflared, which forwards it to Nginx on 127.0.0.1:80. Nginx serves the React build and forwards /api/ to the Hono API, stripping the prefix; login is limited to 1 request per second per IP. PostgreSQL runs on a separate VPS, tuned for 1 GB of RAM. Pull requests run tests and build the images only for the changed part, without publishing. On every push to main, GitHub Actions runs the tests, publishes the images to Docker Hub and updates the VPS over SSH, which also goes through the tunnel and is authorized by Cloudflare Access with a service token.

Architecture: FinControlApp VPSDatabase VPSBrowserReact SPA (Vite)React QueryCloudflareTLSTunnelAccesscloudflaredoutbound onlyHTTP · SSHNginx :80React build/api proxylogin rate limitAPI :3001Node.js + HonoPrisma · ZodJWT authPostgreSQL 18port 5432persistent volumetuned for 1 GB RAMGitHubpush to mainGitHub Actionstests + buildPRs: no deployDocker Hubbackend:latestfrontend:latestHTTPStunnel:80/api/*TCP :5432pushimagesscp + sshpullArchitecture: FinControlApp VPSDatabase VPSCI/CDBrowserReact SPA (Vite)React QueryCloudflareTLSTunnelAccesscloudflaredoutbound onlyHTTP · SSHNginx :80React build/api proxylogin rate limitAPI :3001Node.js + HonoPrisma · ZodJWT authPostgreSQL 18port 5432persistent volumetuned for 1 GB RAMGitHubpush to mainGitHub Actionstests + buildPRs: no deployDocker Hubbackend:latestfrontend:latestApp VPSssh via Accesscompose up -dHTTPStunnel:80/api/*TCP :5432pushimagesscp + sshpull
requestdeploy

Stack

React · Hono · Prisma · PostgreSQL · Nginx · Vite · Node.js · Docker · GitHub Actions