A production-grade admin dashboard for e-commerce stores, built with Next.js 14 (App Router), TypeScript, and PostgreSQL via Prisma.
Features:
• Full RBAC system — role-based permissions down to the module:action level, with 3 pre-built roles (Super Admin, Editor, Viewer) plus unlimited custom roles
• Products, Categories, Orders, and Customers — complete CRUD with search, filtering, sorting, and pagination
• Order management with stock-aware transactions, a validated status state machine (pending → paid → shipped → delivered), and automatic restocking on cancellation/refund
• Secure authentication — bcrypt password hashing, account lockout after failed attempts, forced password rotation, email invite flow via Resend
• Real-time dashboard — revenue trends, order status breakdown, low-stock alerts, all backed by live database queries
• Full audit log — every sensitive action tracked with actor, IP, and timestamp
• In-app notifications with polling
• Light/dark mode, fully responsive, accessible (WCAG-conscious components)
• Security headers (CSP, HSTS, X-Frame-Options), Zod validation on every API route, soft-delete data model
Clean architecture: business logic is separated into custom React hooks (TanStack Query), API routes are organized by module, and the Prisma schema is fully documented. Ready to extend with your own modules following the included patterns.
Note: this is a back-office admin panel, not a customer-facing storefront. Email delivery requires a free Resend API key. 2FA fields exist in the schema but the enrollment flow is not yet implemented.
Published:
04 Nov, 2026
Category:
Files Included:
Framework:
Tags: