Tech Stack

Toàn bộ stack công nghệ chuẩn của PrimeCommerce, áp dụng cho mọi dự án mới.

Frontend

Next.js 14+

App Router + TypeScript. Framework chính cho web.

Tailwind CSS + shadcn/ui

Styling nhanh, component library sẵn dùng.

Cấu trúc thư mục Next.js


Backend

NestJS

Primary API. TypeScript + module architecture.

FastAPI

AI/ML services. Python + async.

Cấu trúc thư mục NestJS

Cấu trúc thư mục FastAPI


Mobile


Infrastructure


Database Schema

Luôn sử dụng migrations khi thay đổi schema. Không bao giờ sửa trực tiếp database.

Monorepo Layout (Khuyên dùng)


Stack-Specific Skills & Guides

Khi làm việc với từng phần của stack, dùng các skills này để có guidance và best practices:
Prefix: /shadcn-ui, /shadcn-ui --add, /shadcn-ui --customizeGuide cho shadcn/ui: thêm component, customize, best practices.
Khi dùng: Thêm component, customize design.
Prefix: /tanstack, /tanstack --query, /tanstack --routerTanStack Query (React Query) + Router best practices.
Khi dùng: Caching, data fetching, routing architecture.
Prefix: /web-frameworks, /web-frameworks nextjs, /web-frameworks performanceFramework-specific patterns: Next.js App Router, layouts, middleware.
Khi dùng: Architecture decisions, pattern selection.
Prefix: /backend-development, /backend-development nestjs, /backend-development api-designNestJS patterns, API design, module architecture.
Khi dùng: Service design, API architecture, module structure.
Prefix: /frontend-development, /frontend-development patterns, /frontend-development a11yComponent design, state management, accessibility patterns.
Khi dùng: Component design, UX patterns, accessibility.
Prefix: /mobile-development, /mobile-development expo, /mobile-development native-modulesExpo + React Native patterns, platform differences.
Khi dùng: Mobile feature development, platform adaptation.
Prefix: /databases, /databases postgresql, /databases migrationsDatabase design, migrations, query optimization.
Khi dùng: Schema design, performance tuning, migrations.
Prefix: /better-auth, /better-auth setup, /better-auth providersAuth flows, JWT, OAuth provider setup.
Khi dùng: Auth implementation, provider integration.
Prefix: /payment-integration, /payment-integration stripe, /payment-integration webhooksPayment gateway integration, webhook handling.
Khi dùng: Payment flow development, transaction handling.
Prefix: /shopify, /shopify api, /shopify appsShopify API, app development, webhook setup.
Khi dùng: Shopify-specific features, app integration.
Prefix: /threejs, /threejs scene, /threejs materials3D scene setup, materials, animations in React.
Khi dùng: 3D product visualization, interactive scenes.
Prefix: /shader, /shader glsl, /shader fragmentCustom shaders, fragment/vertex shaders, optimization.
Khi dùng: Advanced visual effects, custom rendering.
Prefix: /remotion, /remotion composition, /remotion renderRemotion for programmatic video, compositions, rendering.
Khi dùng: Dynamic video generation, automation.
Prefix: /google-adk-python, /google-adk-python sheets, /google-adk-python docsGoogle Sheets, Docs, Drive APIs for Python.
Khi dùng: Google Workspace integration, document automation.