Talvyn CRM
Full Stack Developer · In Progress
Overview
Role-based sales CRM: convert a lead into a deduplicated customer plus an opportunity in one transaction, run the pipeline on a drag-and-drop kanban board, and keep every follow-up, task and change on the record. Built as a pnpm monorepo with a React 19 client and an Express 5 API on PostgreSQL via Prisma, with row-level ownership scoping and an admin-only audit log that redacts secrets.
Key Highlights
- ▹One-click lead conversion into a deduplicated customer plus an opportunity, keeping the original lead as an audit trail and guarding concurrent conversions
- ▹Seven-stage drag-and-drop pipeline (@dnd-kit) with optimistic updates and a keyboard/touch-friendly stage select
- ▹Admin, Sales Manager and Sales Executive roles enforced with row-level ownership scoping in every query
- ▹Live dashboard — revenue trend, pipeline funnel, rep performance and upcoming follow-ups — built with Recharts
Tech Stack
Architecture
React 19 + Vite client (pages, components, axios services) → Express 5 API (helmet, rate limiting, JWT auth, RBAC and ownership scoping; modules of routes, controller, service and Zod validation) → PostgreSQL 17 via Prisma 6. Audit-log and notification helpers write alongside each module.
Future Improvements
A call-log UI and PDF/Excel report export, httpOnly-cookie sessions with refresh tokens, a shared Redis rate-limit store, pagination for large pipelines, and client plus database tests in CI.