MyIWS
Operations platform for a water-treatment services company
Sales, jobs, parts, contracts, safety and finance in one system, with a portal for customers and an app for engineers.
- Role
- Full Stack Developer
- Built at
- Backendz
- Platform
- Web and mobile
- Type
- Operations platform
- Stack
- React, TypeScript, Supabase, PostgreSQL +8
An engineer submits a site report; row-level security checks their permission keys.
Problem
A water-treatment services company ran sales, jobs, site visits, parts, recurring contracts, health and safety, overtime and finance across separate tools.
Approach
One platform with around 70 role-based screens for engineers, account managers, financial controllers and admins, a self-service portal for customers, and a mobile app for field engineers. The web app talks to PostgreSQL directly through Supabase, with row-level security as the access control. Emails and scheduled jobs run as edge functions, and Xero feeds the financial reports and forecasts.
Key decisions
Row-level security as the access control
Instead of: A custom API checking permissionsThe browser queries PostgreSQL directly through PostgREST. Policies in the database decide what each person can see, so every screen follows the same rules.
Permission keys rolled out area by area
Instead of: Switching every screen from roles at onceBoth models ran side by side during the move, so each area could switch to granular keys without breaking the rest.
Edge functions for email and scheduled jobs
Instead of: A separate always-on serverTransactional emails, reminders, weekly digests and support-email intake run as Supabase Edge Functions next to the database.
What I did
- Built and maintained features across the React and TypeScript web app: job management, resource scheduling, sales pipeline, parts ordering and reporting dashboards.
- Designed the PostgreSQL schema and wrote versioned Supabase migrations, with row-level security policies as the access control.
- Moved permissions from roles to granular permission keys, area by area, with both running side by side during the switch.
- Wrote Supabase Edge Functions (Deno) for transactional and scheduled emails, reminders, weekly digests, support-email intake and admin user management.
More details (4)
- Integrated Xero over OAuth 2.0 for financial data, budgets and transactions, and used AI to parse balance sheets and management accounts and write forecast summaries.
- Built PDF and Excel exports, drag-and-drop interfaces, rich-text editing, signature capture and map-based site views.
- Contributed to the Expo / React Native app for field engineers.
- Containerised the web app with Docker and Caddy, deployed through Azure DevOps pipelines, and kept a local Supabase stack for development.
Modules
Frontend
- React 18, TypeScript, Vite, Tailwind CSS, shadcn/ui (Radix UI), TanStack React Query, React Router, React Hook Form and Zod, Recharts, Framer Motion, dnd-kit, Tiptap, Leaflet
Mobile
- React Native, Expo (Expo Router, EAS Build)
Backend
- Supabase (PostgreSQL, PostgREST, Auth, row-level security, Storage), Supabase Edge Functions (Deno), SQL migrations
Integrations
- Xero API (OAuth 2.0), Resend email, AI document parsing and narrative generation, LinkedIn
Documents
- jsPDF, pdf.js, SheetJS (xlsx), html2canvas
DevOps
- Docker, Caddy, Azure DevOps (Repos and Pipelines), Supabase CLI, ESLint