KDInsight is a data and growth intelligence company helping retail and multi-branch businesses turn operational data into clear commercial decisions.
This repository powers the KDInsight web experience, including:
- the public marketing site,
- account registration and sign-in,
- administrator workspace tools, and
- the client demo marketplace where use cases can be added to cart and ordered.
KDInsight combines analytics, product thinking, and implementation support to help business teams:
- improve sales visibility,
- optimize inventory and branch operations,
- understand customer behavior, and
- prioritize high-impact growth actions.
- Brand messaging, service pillars, and conversion-focused sections.
- "Book A Demo" flows connected to account onboarding.
- Authenticated client page at
/demo. - Demo use cases displayed as cards.
- Cart functionality (add, remove, quantity updates).
- Demo order placement with optional notes.
- Dashboard shell and overview.
- User directory and role-based access controls.
- Home page content management tools.
- Email/password authentication (client and admin roles).
- Role-aware post-login routing:
- clients ->
/demo - admins ->
/dashboard
- clients ->
- Session handling via JWT cookie + session storage metadata.
- Prisma + PostgreSQL persistence for users, content, demo catalog, cart, and orders.
- Next.js + React + TypeScript
- SCSS modules
- Prisma ORM
- PostgreSQL
npm installCreate .env.local and provide at least:
DATABASE_URLADMIN_JWT_SECRET(minimum 32 characters)
npm run db:migratenpm run db:generatenpm run devnpm run dev- start local dev servernpm run build- production buildnpm run start- run production servernpm run db:migrate- apply migrationsnpm run db:generate- regenerate Prisma clientnpm run db:seed- seed a local login user
- Use the account hub (
/sign-in) to choose register or sign in. - Client accounts are directed to the demo use-case marketplace.
- Admin accounts are directed to the dashboard and management tools.