Cursor rule Cursor
This repository is a Turborepo monorepo using pnpm workspaces.
Cursor rule Cursor
This repository is a Turborepo monorepo using pnpm workspaces.
Cursor rule Cursor
Cursor rule "01-naming-conventions" from FindMalek/dukkani, covering naming conventions, file naming, general rules, examples and typescript files.
Cursor rule Cursor
Entities transform database data to output schemas. Each entity has three files.
Cursor rule Cursor
The api app is a Next.js API server that handles oRPC requests. It provides the API endpoint for all applications.
Cursor rule Cursor
The dashboard app is a Next.js application for managing stores, products, orders, and customers. It's the main admin interface for the Dukkani platform.
Cursor rule Cursor
The storefront app is the customer-facing commerce experience for storefront browsing and checkout. It is distinct from the marketing site in apps/web.
Cursor rule Cursor
The web app is the public marketing and product website. It is not the merchant storefront runtime (apps/storefront).
Cursor rule Cursor
This file is the high-level package index for packages/. Use it to decide where new logic belongs and to keep dependency boundaries clean.
Cursor rule Cursor
The auth package contains Better Auth configuration and authentication logic. It handles user authentication, session management, and password hashing.
Cursor rule Cursor
@dukkani/ci-tools hosts internal CI automation and analysis commands (for example, workflow-failure analysis).
Cursor rule Cursor
The common package contains shared business logic, entities, schemas, services, and utilities used across the monorepo. It's the core domain layer of the application.
Cursor rule Cursor
The config package contains shared TypeScript configuration files used across the monorepo. It ensures consistent TypeScript settings.
Cursor rule Cursor
@dukkani/core is the central initialization layer for server-side auth and database access. It composes @dukkani/auth, @dukkani/db, and @dukkani/env into safe singleton entrypoints.
Cursor rule Cursor
The db package contains the Prisma database schema, client, seeders, and database utilities. It's the data access layer of the application.
Cursor rule Cursor
The env package centralizes environment variable management and validation. It provides type-safe access to environment variables across the monorepo.
Cursor rule Cursor
@dukkani/logger provides consistent, structured logging for apps and packages.
Cursor rule Cursor
@dukkani/migrations contains migration tooling and the dukkani-migrate CLI for storage/database migration workflows.
Cursor rule Cursor
The orpc package defines the API layer using oRPC (type-safe RPC). It contains routers, procedures, middleware, context, and client utilities.
Cursor rule Cursor
@dukkani/storage provides file upload, image processing, and object-storage operations (S3-compatible).
Cursor rule Cursor
@dukkani/tracing centralizes OpenTelemetry setup, context propagation, and tracing utilities.
Cursor rule Cursor
The ui package contains shared UI components built with shadcn/ui and Radix UI. It provides a consistent design system across all applications.