← All Projects
05 · Project

Business Management Platform

End-to-end business system replacing manual GST workflows - invoicing, payments, and analytics with secure admin isolation at the network level.

Next.jsFastAPIPostgreSQLTailscaleReportLab
↗ GitHub
Overview

Textile & Trading Co. (anonymised) was running their entire operation - sales, purchases, GST invoices, and payment tracking — across handwritten ledgers and Excel sheets, with no audit trail or real visibility into outstanding balances. The goal was to replace this with a structured, secure digital system built around real business workflows.

The system was designed as a split architecture: public and admin surfaces are deployed as completely separate services. Admin APIs are not just protected - they are physically absent from the public service. The admin backend runs behind a Tailscale VPN, making it unreachable at the network level without device-level access.

Core business rules are enforced at the backend and database level. Payment status is never accepted from the frontend - it is derived from transactions, with PostgreSQL generated columns ensuring financial data cannot drift out of sync.

The project was delivered end-to-end as a solo effort - from requirement gathering and system design to deployment - balancing real-world constraints like cost (₹0 security layer), usability, and operational reliability.

38API endpoints delivered
₹0Infra cost (secure admin)
4wkEnd-to-end delivery
100%Manual workflow replaced
Tech Stack

TOOLS &
TECHNOLOGIES.

TECH.01
FastAPI
TECH.02
Next.js
TECH.03
PostgreSQL
TECH.04
Tailscale
TECH.05
ReportLab
Key Highlights

WHAT MAKES IT
STAND OUT.

38API endpoints across modules
2Isolated deployments (public/admin)
3Layer GSTIN lookup: regex → cache → API
₹0Security infra cost (Tailscale)
100%Manual workflow replaced
4wkEnd-to-end solo delivery
Challenges & Solutions

WHAT WAS HARD.
HOW I SOLVED IT.

Critical Challenge

Ensuring GST invoice PDFs exactly matched the client’s existing format.

Engineered Solution

Built a fixed-layout PDF system using ReportLab with pre-calculated section heights and validation against A4 dimensions to prevent layout drift.

Critical Challenge

Preventing incorrect payment states due to manual data entry.

Engineered Solution

Moved all payment status logic to backend and PostgreSQL generated columns, ensuring consistency regardless of frontend input.

Critical Challenge

Securing admin access without exposing it to the public internet.

Engineered Solution

Deployed admin APIs separately with route-level exclusion and enforced network-level access using Tailscale VPN.

Critical Challenge

Avoiding slow or unreliable external API dependencies during core operations.

Engineered Solution

Handled Google Sheets sync asynchronously using background tasks, keeping PostgreSQL as the single source of truth.

Core Architecture

HOW IT'S
ALL WIRED UP.