m91michel work-cafes-de .cursorrules file for TypeScript

// Next.js App Router .cursorrules

// Next.js App Router best practices
const nextjsAppRouterBestPractices = [
  "Use server components by default",
  "Implement client components only when necessary",
  "Utilize the new file-based routing system",
  "Use layout.js for shared layouts",
  "Implement loading.js for loading states",
  "Use error.js for error handling",
  "Utilize route handlers for API routes",
];

// TECHNOLOGY STACK
Frontend:
- yarn as package manager
- Framework: Next.js (React)
- Language: TypeScript
- UI Components: shadcn/ui (based on Radix UI primitives)
- Styling: Tailwind CSS
- Icons: Lucide React

Backend:
- Framework: Next.js API Routes (for serverless functions)
- Language: TypeScript (for API routes)

// Folder structure
const folderStructure = `
app/
  layout.js
  page.js
public/
components/
lib/
hooks/
data/
config/
`;

// Additional instructions
const additionalInstructions = `
1. Use TypeScript for type safety
2. Implement proper metadata for SEO
3. Utilize Next.js Image component for optimized images
4. Tailwind CSS for styling
5. Implement proper error boundaries
6. Follow Next.js naming conventions for special files
7. Use environment variables for configuration
`;
css
html
javascript
less
next.js
plpgsql
radix-ui
react
+4 more

First Time Repository

Created with StackBlitz ⚡️

TypeScript

Languages:

CSS: 3.2KB
HTML: 0.0KB
JavaScript: 2.4KB
PLpgSQL: 2.7KB
TypeScript: 267.4KB
Created: 12/7/2024
Updated: 1/21/2025

All Repositories (1)

Created with StackBlitz ⚡️