| description | sedekahje general rules |
|---|---|
| globs | |
| alwaysApply | false |
This is a Next.js 14 Malaysian QR code directory for mosques, suraus, and other religious institutions.
- Framework: Next.js 14 App Router
- Language: TypeScript (strict mode)
- Database: PostgreSQL with Drizzle ORM
- Authentication: Better Auth with Google OAuth
- Styling: Tailwind CSS + shadcn/ui
- Package Manager: Bun exclusively
- Code Quality: Biome (tabs, 80 chars)
- Server Actions First - Use server actions instead of API routes
- Feature-Based Organization - Group by features, not file types
- TypeScript Strict - No
anytypes, proper inference - Malaysian Context - Consider local payment systems and culture
- Performance - Server components by default, client when needed
# Development
bun dev
# Code Quality
bun run check # lint + format
bun run type-check
# Database
bun run db:seed
bun run db:truncate- Use TypeScript strictly - no
anytypes - Use Biome for linting and formatting (tabs, 80 char limit)
- Use Drizzle ORM for all database operations
- Use Better Auth for authentication
- Use server actions for form submissions (NO API routes unless necessary)
- Use TanStack Query for client-side data fetching
- Use shadcn/ui components (don't modify them)
- Use Tailwind for all styling
- Use proper error handling with try-catch
- Use proper loading states for async operations