- Development:
pnpm dev(orpnpm nodbwithout DB,pnpm usedbwith DB) - Build:
pnpm build - Production:
pnpm start - Lint:
pnpm lint - Database:
pnpm prisma migrate dev(setup),pnpm prisma db seed(seed)
- Formatting: 140 char width, double quotes, semicolons (Prettier)
- TypeScript: Strict types, interfaces for structure, generics when appropriate
- Components: Functional components with hooks, PascalCase naming
- Imports: External libs first, followed by internal modules with @/ alias
- Naming: PascalCase for components/interfaces, camelCase for variables/functions
- Functions: Descriptive verb-noun naming (handleClick, fetchData)
- Error Handling: try/catch blocks with toast notifications for user-facing errors
- File Structure: Feature-based organization in /components, /types, /store
- Zustand for global state
- React hooks for component state
- TypeScript types for state shape