Files
towercontrol/.cursor/rules/project-structure.mdc
Julien Froidefond 65abbc1454 style: update project structure documentation for clarity
- Added clarification to the components section, specifying that React components are organized by domain for better understanding of project structure.
2025-09-16 09:08:00 +02:00

31 lines
787 B
Plaintext

---
alwaysApply: true
---
# Project Structure Rules
1. Backend:
- [services/](mdc:services/) - ALL database access
- [app/api/](mdc:app/api/) - API routes using services
2. Frontend:
- [clients/](mdc:clients/) - HTTP clients
- [components/](mdc:components/) - React components (organized by domain)
- [hooks/](mdc:hooks/) - React hooks
3. Shared:
- [lib/](mdc:lib/) - Types and utilities
- [scripts/](mdc:scripts/) - Utility scripts
Key Files:
- [services/database.ts](mdc:services/database.ts) - Database pool
- [clients/base/http-client.ts](mdc:clients/base/http-client.ts) - Base HTTP client
- [lib/types.ts](mdc:lib/types.ts) - Shared types
❌ FORBIDDEN:
- Database access outside services/
- HTTP calls outside clients/
- Business logic in components/