Kamalan C S

Sales pipeline command centre · 2026

LeadFlow CRM

A typed, layered full-stack CRM: JWT-secured, schema-validated, isolated per user, with a responsive pipeline dashboard.

Concept illustration for LeadFlow CRM

The vision

A CRM built the way a production team would build one: feature-sliced frontend, layered backend, every request validated at the boundary, and tenant isolation designed in from the first commit.

Problem

Small teams track prospects across spreadsheets and chat threads, lose deals between stages, and have no single view of the pipeline.

Solution

A React + TypeScript dashboard over an Express + TypeScript API. Leads move through six pipeline stages and support search, status filters and pagination. Pipeline totals are computed on the server. Every lead operation is scoped to the authenticated user.

Architecture

LeadFlow CRM architectureCLIENTSEDGE & APISERVICESDATA & EXTERNALJWTscoped to userReact SPAVite · feature slicesExpress routes/apiMiddlewareauthenticate · errorsZod validatorsServicesbusiness rulesMongoDBMongoose models
  • React SPA to Express routes (JWT)
  • Express routes to Middleware
  • Middleware to Zod validators
  • Zod validators to Services
  • Services to MongoDB (scoped to user)

Engineering highlights

  • Six-stage pipeline: New → Contacted → Qualified → Proposal → Won / Lost
  • Zod request schemas at every API boundary, with typed AppError / ValidationError handling
  • JWT auth that rejects weak signing secrets at startup; passwords hashed with bcrypt
  • Per-user data isolation enforced in the service layer
  • Feature-sliced client (auth, leads, workspace) with dedicated API, hooks and component layers
  • Server tests on the Node.js test runner