corrad-bp/.cursor/rules/project-structure.mdc
Md Afiq Iskandar 7fca97912f Add Documentation for Backend Services, Components, Database Models, Development Guidelines, Form Handling, Project Overview, Project Structure, Routing, and State Management
- Created comprehensive documentation files for backend services, detailing API endpoints, database access, authentication, and middleware.
- Added documentation for Rose UI components and custom FormKit components, including descriptions and usage.
- Documented database models defined in Prisma, outlining core and supporting models with their fields and relationships.
- Established development guidelines for component and form development, state management, API development, and styling.
- Included details on FormKit integration for form handling, plugins, and the form builder feature.
- Provided an overview of the project structure, key configuration files, and routing system with main routes and middleware usage.
- Enhanced state management documentation with key stores and usage guidelines for Pinia.
2025-04-23 08:19:14 +08:00

24 lines
985 B
Plaintext

---
description:
globs:
alwaysApply: false
---
# Project Structure
## Directory Organization
- **[/components](mdc:components)**: Contains all Rose UI components (prefixed with `rs-`) and FormKit custom components
- **[/layouts](mdc:layouts)**: Page layouts (default and empty)
- **[/pages](mdc:pages)**: Application routes following Nuxt's file-based routing
- **[/server](mdc:server)**: Backend API endpoints and middleware
- **[/prisma](mdc:prisma)**: Database schema and migrations
- **[/stores](mdc:stores)**: Pinia stores for state management
- **[/assets](mdc:assets)**: Static assets like SCSS and images
- **[/plugins](mdc:plugins)**: Vue plugins and Nuxt modules
## Key Configuration Files
- **[nuxt.config.js](mdc:nuxt.config.js)**: Main Nuxt configuration
- **[formkit.config.js](mdc:formkit.config.js)**: FormKit configuration
- **[tailwind.config.js](mdc:tailwind.config.js)**: Tailwind CSS configuration
- **[package.json](mdc:package.json)**: Project dependencies