lyubo-velikoff property-ai .cursorrules file for TypeScript

**Project Name**: Avalon Real Estate Website (Авалон Недвижими Имоти)

**Architecture**: Monorepo Structure using Turborepo
1. **Apps/**
   - `web/`: React frontend application
   - `api/`: Node.js/Express backend

2. **Packages/**
   - `shared-ui/`: Reusable UI components (including the recently updated Pagination component)
   - `shared-types/`: Common TypeScript type definitions

**Database Structure**:
- ORM: Prisma with SQLite
- ERD Location: `apps/api/prisma/ERD.svg`
- Key Models:
  1. User (auth & authorization)
  2. Property (main listing entity)
  3. Region/Neighborhood (location hierarchy)
  4. Feature/PropertyFeature (amenities, m2m)
  5. Image (property photos)
  6. ContactInfo (property contact)
  7. ContactMessage (inquiries)
- Schema: `apps/api/prisma/schema.prisma`
- ERD Generation: `npx prisma-uml ./prisma/schema.prisma --output svg --file ./prisma/ERD.svg`

**Tech Stack**:
- Frontend:
  - React + TypeScript
  - Tailwind CSS (with dark mode support)
  - React Router
  - TanStack Query
  - Zod for validation

- Backend:
  - Node.js + TypeScript
  - Express
  - Prisma ORM
  - SQLite/MongoDB
  - JWT Authentication

**Key Features**:
1. Responsive design with light/dark mode support
2. Property search and filtering
3. Admin panel with CRUD operations
4. Contact form with reCAPTCHA
5. Google Analytics integration
6. Interactive map integration

**Development Tools**:
- Package Manager: pnpm (v8.14.1+)
- Node Version: v20.12.2 (specified in .nvmrc)
- Code Quality: ESLint and Prettier
- Build System: Turborepo

**Current Development Status**:
Based on the roadmap, there are two main items being worked on:
1. Fixing property edit functionality (addressing validation errors for property types and contact info)
2. Implementing toast notifications for CRUD operations in the admin panel

**Recent Updates**:
The most recent changes involve improvements to the pagination component:
- Added dark mode support using CSS variables
- Implemented custom labels and translations
- Enhanced cache management in the pagination hook
- Improved test coverage and reliability

**Development Environment**:
- Local development servers:
  - Frontend: http://localhost:5173
  - Backend: http://localhost:3000

**Project Setup**:
```bash
pnpm install    # Install dependencies
pnpm dev        # Start development servers
```

This appears to be a professional real estate website project with a strong focus on type safety, component reusability, and modern development practices. The monorepo structure allows for good code organization and sharing of common components and types across different parts of the application.
analytics
css
eslint
express.js
golang
html
javascript
jwt
+9 more

First Time Repository

TypeScript

Languages:

CSS: 4.8KB
HTML: 0.4KB
JavaScript: 2.0KB
TypeScript: 335.8KB
Created: 1/12/2025
Updated: 1/19/2025

All Repositories (1)