Frontend- Next.js, backend - node.js server and the database postgres. made completely using AI. hosted on digital ocean and vercel. Learnt different things all from AI and sometimes udemy.
Author : CA. Shiwam Agarwal
Author : CA. Shiwam Agarwal
Use Case (one line)
A practising Chartered Accountant directed AI to build a production-grade accounting ERP — and that ERP uses AI to do the work CAs hate most: reading vendor invoices and booking them after checking goods receipt, quantity sold, and GST portal data.
The double helix: the system was built by AI and it runs on AI.
The Problem
In day-to-day CA practice and in the accounts departments we serve, the most expensive work is also the most repetitive:
The Solution
A single, multi-client accounting platform — 168 screens, 157 database tables, 377 permission rules and 109 API modules — that an individual CA built and that 10–30 users across 1–3 businesses operate daily. Its flagship capability is an AI-assisted, pay-smart invoice pipeline:
Around this sit the controls a real firm needs: granular role + branch locking (a cashier cannot see payroll; a manager sees cashier and payroll but not vendor entries), a complete audit trail (who changed what, who logged in from where, who up/downloaded which file, plus a full before/after snapshot of every entry), and a single document vault (KYC, bank statements, employee photos, reports, audit reports, daily expenses, invoices — all in cloud storage). Bank statements are imported by deterministic, 100%-confidence account mapping with no AI at all — a deliberate choice: AI for unstructured reading, exact code for the numbers that must never be guessed.
How We Implemented It
AI tools used
How it was built (technical): I am a CA, not a software engineer. Instead of writing code, I encoded the rules of the domain into a guardrail file the AI must obey on every change — money is never stored as floating-point (a fixed-precision decimal library is mandatory), every voucher must balance by a database trigger, future-dated entries are blocked, every change is versioned, and the code must follow a strict layered architecture (Routes → Controllers → Services → Repositories → Database). The AI then built — and keeps extending — an enterprise system inside those rules. The domain expert sets the law; the AI does the labour, at a scale and speed no single person could.
A bug AI helped me solve: After building strict role-and-branch locking, a subtle hole remained — a cashier could still see and operate every cash counter, not just their own. Using AI to debug systematically, we traced it to a single wrong assumption in how “global access” was decided (it keyed off only one of two access flags). The fix established a clear rule — a user is global only if they need neither a branch nor a cash counter — and closed the leak. A textbook internal-control failure, found and fixed by reasoning, not guesswork.
The Result
“I used to hope my team got it right. Now I can guarantee it.”