~ / deployments / ilado-fms
v1.0.0 Ilado FMS
Multi-tenant farm management SaaS: each farm business gets an isolated workspace covering crops, livestock, equipment, inventory, HR/payroll, accounting and reporting.
Multi-tenant SaaS · role: Designer and full-stack developer · released Sep 2026
Release notes
Problem
Farm businesses need one system for operations and finance, and each business's data must be completely isolated from every other tenant's.
Approach
Schema-per-tenant PostgreSQL: each tenant's data lives in its own schema with no shared tenant_id columns, so cross-tenant reads are structurally impossible. Tenants are routed by subdomain; a request interceptor resolves the tenant and Hibernate sets the search_path for each connection.
Highlights
- Schema-per-tenant isolation with subdomain routing (e.g. acme.farmms.com)
- JWT auth with short-lived access tokens, refresh-token rotation and a cross-tenant token check
- Database-driven RBAC with 50+ permission codes enforced by a custom @RequiresPermission AOP annotation; revocations apply immediately
- Audit logging and time-limited admin impersonation, every step recorded
- Double-entry general ledger, budgets, payroll with Kenyan statutory deductions
- FEFO batch inventory with purchase orders and goods-received notes
- React frontend with reusable paginated CRUD hooks, React Hook Form and an Axios client that refreshes tokens automatically
- Dockerised with Docker Compose and Traefik; Flyway migrations
Stack
- Java 17
- Spring Boot 3
- PostgreSQL
- Redis
- React 18
- Redux Toolkit
- Tailwind
- Docker
- Traefik
- Flyway