Features
- Sign-up and login, with authentication and authorization in the API.
- Onboarding to set up the account.
- Income and expense dashboards.
- Responsive interface.
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.
Stack
React · Hono · Prisma · PostgreSQL · Nginx · Vite · Node.js · Docker · GitHub Actions