Awesome Cursor Rules Collection

Showing 421-432 of 2626 matches

HTML
<Rules>
    <GeneralPrinciples>
        <Simplicity>
            <Rule>Write code that does the job without unnecessary complexity (KISS). Avoid overengineering or adding extra features unless absolutely necessary (YAGNI).</Rule>
            <Rule>Keep responses concise and direct by default unless comprehensive explanations are explicitly requested.</Rule>
        </Simplicity>
        <Focus>
            <Rule>Each function or script should have a single clear goal. Avoid making a script or function handle multiple unrelated tasks (Curly's Law).</Rule>
            <Rule>Stick to the main task and ensure your results directly answer the research questions posed.</Rule>
        </Focus>
        <Collaboration>
            <Rule>Ask questions to remove ambiguity and confirm assumptions, ensuring accuracy in responses and solutions.</Rule>
            <Rule>If you don’t know something, acknowledge it clearly and seek clarification or additional information.</Rule>
        </Collaboration>
    </GeneralPrinciples>
    <ProjectStructure>
        <DirectoryStructure>
            <Rule>Organize projects into clear folders like `data/`, `scripts/`, and `output/` to maintain clarity and separation of tasks.</Rule>
            <Rule>Ensure raw data remains untouched in `/data/` while transformed or cleaned outputs are saved separately in `/output/`.</Rule>
        </DirectoryStructure>
        <FileManagement>
            <Rule>Use simple naming conventions for files to track versions (e.g., `data_cleaned_v1.csv`).</Rule>
            <Rule>Maintain a logical and consistent structure in R Markdown files for analysis and reports.</Rule>
        </FileManagement>
    </ProjectStructure>
    <CodePractices>
        <CleanCode>
            <Rule>Write clean and readable code that avoids unnecessary complexity. Code should be easy to follow without extensive comments.</Rule>
            <Rule>Follow consistent naming conventions for variables and functions to improve readability and understanding.</Rule>
        </CleanCode>
        <Reuse>
            <Rule>Refrain from duplicating code by creating functions for repeated tasks (DRY principle).</Rule>
            <Rule>Write modular scripts that can be reused and adapted without significant modification.</Rule>
        </Reuse>
        <ErrorHandling>
            <Rule>Ensure error handling is integrated into scripts to gracefully manage unexpected scenarios.</Rule>
            <Rule>Document assumptions and transformations clearly in the scripts to enhance transparency and reproducibility.</Rule>
        </ErrorHandling>
    </CodePractices>
    <DataAnalysis>
        <StatisticalMethods>
            <Rule>Use tools appropriate for ecological and biological research, such as `vegan` for multivariate analysis and `BBI` for ecological indices.</Rule>
            <Rule>Validate data integrity before analysis, using checks like `stopifnot()` or equivalent methods.</Rule>
        </StatisticalMethods>
        <Reproducibility>
            <Rule>Document data sources, transformations, and analysis methods in R Markdown for seamless replication.</Rule>
            <Rule>Use Docker for environment consistency, ensuring all dependencies are clearly listed and documented.</Rule>
        </Reproducibility>
    </DataAnalysis>
    <VersionControl>
        <GitUsage>
            <Rule>Track changes using Git with clear and specific commit messages focused on individual tasks or fixes.</Rule>
            <Rule>Avoid adding large data files to version control unless absolutely necessary. Instead, use external storage or references.</Rule>
        </GitUsage>
    </VersionControl>
    <Visualization>
        <Figures>
            <Rule>Create publication-quality visuals using `ggplot2`, ensuring clarity and relevance to the research questions.</Rule>
            <Rule>Use consistent scales, labels, and legends across all figures and tables to maintain visual coherence.</Rule>
        </Figures>
        <Outputs>
            <Rule>Save all graphs, tables, and visualizations in a dedicated `/output/` folder with descriptive filenames.</Rule>
            <Rule>Embed visualizations and summaries directly in R Markdown for seamless inclusion in reports.</Rule>
        </Outputs>
    </Visualization>
    <Documentation>
        <Inline>
            <Rule>Use inline comments sparingly but effectively to explain complex transformations or critical steps in the code.</Rule>
            <Rule>Document any assumptions or decisions made during data cleaning, analysis, or visualization.</Rule>
        </Inline>
        <Reports>
            <Rule>Write clear, concise narratives in R Markdown files to accompany analysis and results.</Rule>
            <Rule>Ensure all figures and tables are properly referenced in the accompanying text for clarity.</Rule>
        </Reports>
    </Documentation>
    <Collaboration>
        <Consistency>
            <Rule>Maintain consistency with established project structures, styles, and analytical methods when contributing to a collaborative effort.</Rule>
            <Rule>Align contributions with the tone, style, and expectations of the journal or team guidelines.</Rule>
        </Consistency>
        <Editing>
            <Rule>Focus on clarity and precision when reviewing or editing, ensuring all results are clearly explained and linked to research questions.</Rule>
            <Rule>Proofread thoroughly before finalizing or submitting any work to catch errors or inconsistencies.</Rule>
        </Editing>
    </Collaboration>
</Rules>
docker
dockerfile
golang
html
javascript
less
r

First seen in:

harkanatta/ormar

Used in 1 repository

CSS
You are an expert in WordPress, WooCommerce, PHP, and related web development technologies.Key Principles- Write concise, technical code with accurate PHP examples.- Follow WordPress and WooCommerce coding standards and best practices.- Use object-oriented programming when appropriate, focusing on modularity.- Prefer iteration and modularization over duplication.- Use descriptive function, variable, and file names.- Use lowercase with hyphens for directories (e.g., wp-content/themes/my-theme) (e.g., wp-content/plugins/easy-smart-login).- Favor hooks (actions and filters) for extending functionality.PHP/WordPress/WooCommerce- Use PHP 7.4+ features when appropriate (e.g., typed properties, arrow functions).- Follow WordPress PHP Coding Standards.- Use strict typing when possible: `declare(strict_types=1);`- Utilize WordPress core functions and APIs when available.- File structure: Follow WordPress theme and plugin directory structures and naming conventions.- Implement proper error handling and logging:- Use WordPress debug logging features.- Create custom error handlers when necessary.- Use try-catch blocks for expected exceptions.- Use WordPress's built-in functions for data validation and sanitization.- Implement proper nonce verification for form submissions.- Utilize WordPress's database abstraction layer (wpdb) for database interactions.- Use `prepare()` statements for secure database queries.- Implement proper database schema changes using `dbDelta()` function.Dependencies- WordPress (latest stable version)- WooCommerce (latest stable version)- Composer for dependency management (when building advanced plugins or themes)WordPress and WooCommerce Best Practices- Use WordPress hooks (actions and filters) instead of modifying core files.- Implement proper theme functions using functions.php.- Use WordPress's built-in user roles and capabilities system.- Utilize WordPress's transients API for caching.- Implement background processing for long-running tasks using `wp_cron()`.- Use WordPress's built-in testing tools (WP_UnitTestCase) for unit tests.- Implement proper internationalization and localization using WordPress i18n functions.- Implement proper security measures (nonces, data escaping, input sanitization).- Use `wp_enqueue_script()` and `wp_enqueue_style()` for proper asset management.- Implement custom post types and taxonomies when appropriate.- Use WordPress's built-in options API for storing configuration data.- Implement proper pagination using functions like `paginate_links()`.- Leverage action and filter hooks provided by WooCommerce for extensibility.- Example: `add_action('woocommerce_before_add_to_cart_form', 'your_function');`- Adhere to WooCommerce's coding standards in addition to WordPress standards.- Use WooCommerce's naming conventions for functions and variables.- Use built-in WooCommerce functions instead of reinventing the wheel.- Example: `wc_get_product()` instead of `get_post()` for retrieving products.- Use WooCommerce's Settings API for plugin configuration pages.- Integrate your settings seamlessly into WooCommerce's admin interface.- Override WooCommerce templates in your plugin for custom layouts.- Place overridden templates in `your-plugin/woocommerce/` directory.- Use WooCommerce's CRUD classes and data stores for managing custom data.- Extend existing data stores for custom functionality.- Use WooCommerce session handling for storing temporary data.- Example: `WC()->session->set('your_key', 'your_value');`- If extending the REST API, follow WooCommerce's API structure and conventions.- Use proper authentication and permission checks.- Use WooCommerce's notice system for user-facing messages.- Example: `wc_add_notice('Your message', 'error');`- Extend WooCommerce's email system for custom notifications.- Use `WC_Email` class for creating new email types.- Check for WooCommerce activation and version compatibility.- Gracefully disable functionality if requirements aren't met.- Use WooCommerce's translation functions for text strings.- Support RTL languages in your plugin's CSS.- Utilize WooCommerce's logging system for debugging.- Example: `wc_get_logger()->debug('Your debug message', array('source' => 'your-plugin'));`Key Conventions1. Follow WordPress's plugin API for extending functionality.2. Use WordPress's template hierarchy for theme development.3. Implement proper data sanitization and validation using WordPress functions.4. Use WordPress's template tags and conditional tags in themes.5. Implement proper database queries using $wpdb or WP_Query.6. Use WordPress's authentication and authorization functions.7. Implement proper AJAX handling using admin-ajax.php or REST API.8. Use WordPress's hook system for modular and extensible code.9. Implement proper database operations using WordPress transactional functions.10. Use WordPress's WP_Cron API for scheduling tasks. always keep in mind this project name easy smart login
css
hack
javascript
less
php
rest-api
scss
loyalcoder/easy-smart-login

Used in 1 repository

JavaScript
We are using Bun, so we can use base level async / await
bun
javascript
python

First seen in:

hackclub/etl-scripts

Used in 1 repository

TypeScript
# Key Principles and Best Practices

## Expertise Areas

- Solidity, TypeScript, Node.js, Next.js 14 App Router, React
- Viem v2, Wagmi v2, Shadcn UI, Radix UI, Tailwind Aria

## General Principles

- Write concise, technical responses with accurate TypeScript examples
- Use functional, declarative programming; avoid classes
- Prefer iteration and modularization over duplication
- Use descriptive variable names with auxiliary verbs (e.g., isLoading)
- Use lowercase with dashes for directories (e.g., components/auth-wizard)
- Favor named exports for components
- Use the Receive an Object, Return an Object (RORO) pattern

## JavaScript/TypeScript

- Use "function" keyword for pure functions; omit semicolons
- Use TypeScript for all code; prefer interfaces over types; avoid enums, use maps
- File structure: Exported component, subcomponents, helpers, static content, types
- Avoid unnecessary curly braces in conditional statements
- For single-line statements in conditionals, omit curly braces
- Use concise, one-line syntax for simple conditional statements (e.g., if (condition) doSomething())

## Error Handling and Validation

- Prioritize error handling and edge cases
- Handle errors and edge cases at the beginning of functions
- Use early returns for error conditions to avoid deeply nested if statements
- Place the happy path last in the function for improved readability
- Avoid unnecessary else statements; use if-return pattern instead
- Use guard clauses to handle preconditions and invalid states early
- Implement proper error logging and user-friendly error messages
- Consider using custom error types or error factories for consistent error handling

## React/Next.js

- Use functional components and TypeScript interfaces
- Use declarative JSX
- Use function, not const, for components
- Use Shadcn UI, Radix, and Tailwind Aria for components and styling
- Implement responsive design with Tailwind CSS
- Use mobile-first approach for responsive design
- Place static content and interfaces at file end
- Use content variables for static content outside render functions
- Minimize 'use client', 'useEffect', and 'setState'; favor RSC
- Use Zod for form validation
- Wrap client components in Suspense with fallback
- Use dynamic loading for non-critical components
- Optimize images: WebP format, size data, lazy loading
- Model expected errors as return values
- Use error boundaries for unexpected errors
- Use useActionState with react-hook-form for form validation
- Code in services/ dir always throw user-friendly errors that tanStackQuery can catch and show to the user

## Server Actions

- Use next-safe-action for all server actions
- Implement type-safe server actions with proper validation
- Utilize the action function from next-safe-action for creating actions
- Define input schemas using Zod for robust type checking and validation
- Handle errors gracefully and return appropriate responses
- Use import type { ActionResponse } from '@/types/actions'
- Ensure all server actions return the ActionResponse type
- Implement consistent error handling and success responses using ActionResponse

## Key Conventions

1. The import syntax for this project is `import {something} from "~~/path"
1. Rely on Next.js App Router for state changes
1. Prioritize Web Vitals (LCP, CLS, FID)
1. Minimize 'use client' usage:
   - Prefer server components and Next.js SSR features
   - Use 'use client' only for Web API access in small components
   - Avoid using 'use client' for data fetching or state management

Refer to Next.js documentation for Data Fetching, Rendering, and Routing best practices: https://nextjs.org/docs
css
java
javascript
makefile
nestjs
next.js
radix-ui
react
+5 more

First seen in:

balancer/pool-creator

Used in 1 repository

TypeScript
JavaScript

**Prompt for Composer:**

*Objective:*  
Develop an AI-powered app named **Plant Sister** to assist users in caring for their plants. The app should have the ability to recognize plant types via photo uploads or textual descriptions. It should also provide personalized plant care tips. The design should be sleek, user-friendly, and aligned with high standards of UX/UI akin to Apple apps. Ensure scalability for both web and mobile platforms.

*Key Features:*  
1. **Image Recognition:**  
   - Utilize state-of-the-art image recognition technology (e.g., TensorFlow or PyTorch models fine-tuned for plant species).  
   - Allow users to upload photos for real-time plant identification.

2. **Textual Identification:**  
   - Integrate natural language processing (NLP) capabilities (e.g., OpenAI's GPT models) to identify plant species based on names or descriptions.  

3. **Plant Care Recommendations:**  
   - Generate dynamic care instructions tailored to the specific plant and user preferences.  
   - Include reminders for watering, fertilizing, and other plant care tasks.

4. **Database Integration:**  
   - Design and implement a database to securely store user information, plant data, and activity logs.  
   - Use relational databases like **PostgreSQL** or **MySQL** for structured data, or NoSQL databases like **MongoDB** for flexibility.  
   - Ensure robust authentication and encryption for user data privacy.

5. **Cross-Platform Support:**  
   - Build a progressive web app (PWA) for seamless access on web and mobile devices.  
   - Consider frameworks like **React Native** or **Flutter** for mobile apps.

6. **Scalable Backend:**  
   - Use cloud-based architecture (e.g., AWS, Google Cloud, or Azure) to manage user data, AI processing, and scalability needs.  
   - Integrate database solutions with backend frameworks like Node.js or Django.  
   - Implement APIs for seamless communication between the frontend, backend, and database.

7. **Apple-like Design Principles:**  
   - Adhere to Human Interface Guidelines (HIG) for a smooth, intuitive user experience.  
   - Incorporate visually pleasing animations and responsive layouts.

*Development Tools and Technologies:*  
- **Frontend:** React/Next.js for web; React Native/Flutter for mobile.  
- **Backend:** Node.js or Python (FastAPI/Django), integrated with serverless architectures where possible.  
- **Database:** PostgreSQL, MySQL, or MongoDB for data storage; Prisma or Sequelize for ORM if applicable.  
- **AI Features:** OpenAI APIs, custom-trained image classifiers, and GPT models for NLP.  
- **Design:** Figma or Sketch for prototyping, adhering to Apple HIG.  
- **Testing:** Cypress or Selenium for end-to-end testing.  

*Deliverables:*  
- A functional prototype with core features implemented, including a database integration.  
- A detailed README documenting architecture, features, and future scalability considerations.

*Timeline:*  
Deliver an MVP (Minimum Viable Product) within 8 weeks, focusing on core functionalities like plant identification, care recommendations, and database setup. Post-MVP phases to enhance UX/UI and add advanced features like social sharing and community discussions.

aws
azure
css
cypress
django
fastapi
golang
html
+15 more

First seen in:

racsoxo/plant-sister

Used in 1 repository

Python
You are an expert in Python application development with deep knowledge in:
- Telegram bot development (python-telegram)
- Notion API integration (notion-client)
- FastAPI development and testing
- Asynchronous Python programming
- Vercel deployment architecture

## CRITICAL PRINCIPLES - READ FIRST
1. **Preserve Existing Functionality**
   - NEVER modify existing functionality without thorough code review
   - Document and test all behavior before making changes
   - Always verify dependencies and side effects before modification
   - If unsure about a component's purpose, STOP and ask

2. **Integration Strategy**
   - Prefer small, incremental changes over large refactors
   - Document all integration points between systems
   - Maintain separate concerns while combining codebases
   - Create comprehensive tests for integrated functionality

3. **Change Management**
   - All major architectural changes require explicit approval
   - Document every modification with clear reasoning
   - Maintain a changelog of all integrations
   - Create migration plans for any breaking changes

## Technical Stack Specifications

### Core Dependencies
```
Primary:
- python-telegram
- notion-client
- rich
- pydantic
- fastapi
- uvicorn
- pyngrok
- typing-extensions
- aiohttp
- httpx (for testing)

Development:
- pytest
- black
- isort
- mypy
```

### Version Control and Compatibility
- Python version: 3.9+ (Vercel compatibility)
- Use strict typing throughout
- Maintain package version lock files
- Document all version constraints

## Code Organization and Structure

### Project Layout
```
project_root/
├── app/
│   ├── core/           # Shared core functionality
│   ├── telegram/       # Telegram bot specific code
│   ├── notion/         # Notion integration specific code
│   ├── api/           # FastAPI routes and handlers
│   └── utils/         # Shared utilities
├── tests/
│   ├── integration/   # Integration tests
│   └── unit/         # Unit tests
└── config/           # Configuration management
```

### Module Integration Guidelines
1. Keep original module structure where possible
2. Create clear interfaces between systems
3. Use dependency injection for service integration
4. Maintain separate configuration for each component

## Error Handling and Validation

### Error Management Strategy
- Preserve existing error handling patterns
- Add structured logging for integration points
- Implement global error tracking
- Create error boundary between systems

### Validation Rules
- Use Pydantic for all data validation
- Maintain existing validation patterns
- Add integration validation layers
- Implement strict type checking

## Asynchronous Programming Guidelines

### Async Patterns
```python
# Preferred pattern for async operations
async def integrated_operation():
    try:
        # Preserve existing async context
        async with AsyncClient() as client:
            result = await existing_operation()
            return await new_integration(result)
    except IntegrationException:
        # Add structured logging
        logger.error("Integration failed", exc_info=True)
        raise
```

### Async Best Practices
1. Use consistent async patterns across modules
2. Maintain existing async contexts
3. Properly handle async cleanup
4. Implement proper timeout handling

## Testing Requirements

### Testing Strategy
- Maintain existing test coverage
- Add integration tests for new connections
- Use HTTPX for async HTTP testing
- Implement API simulation for Telegram/Notion

### Test Categories
1. Unit tests for individual components
2. Integration tests for system connections
3. End-to-end tests for critical paths
4. Performance tests for integrated systems

## Development Workflow

### Change Process
1. Document existing functionality
2. Create integration test plan
3. Implement minimal required changes
4. Verify all existing tests pass
5. Add new integration tests
6. Deploy to staging environment
7. Verify in production-like environment

### Code Review Requirements
- Verify existing functionality preservation
- Check for integration side effects
- Validate error handling
- Confirm test coverage
- Review performance impact

## Performance Guidelines

### Integration Performance
- Monitor response times at integration points
- Implement caching where appropriate
- Use connection pooling for external services
- Monitor memory usage during integration

### Optimization Rules
1. Profile before optimizing
2. Document performance baselines
3. Monitor integration overhead
4. Implement appropriate caching

## Vercel Deployment Considerations

### Deployment Requirements
- Function size limits
- Execution time constraints
- Environment variable management
- Serverless function optimization

### Deployment Process
1. Verify local functionality
2. Test in staging environment
3. Validate serverless constraints
4. Deploy with monitoring

## Security and Authentication

### Security Requirements
- Maintain existing security patterns
- Implement secure integration patterns
- Use environment variables for secrets
- Implement proper rate limiting

### Authentication Flow
1. Preserve existing auth mechanisms
2. Add integration authentication
3. Implement proper token handling
4. Maintain security contexts

## Documentation Requirements

### Required Documentation
1. Integration points and interfaces
2. Configuration changes
3. Error handling patterns
4. Deployment procedures
5. Testing requirements

### Code Documentation
- Document all integration functions
- Maintain existing documentation
- Add integration examples
- Update API documentation

## Key Development Conventions

1. Always preserve existing functionality first
2. Document thoroughly before changing
3. Test extensively after integration
4. Use consistent async patterns
5. Implement proper error boundaries
6. Maintain separate configurations
7. Version control all changes
8. Monitor performance impacts
9. Follow security best practices
10. Keep deployment constraints in mind

## Before Making Changes

### Pre-Change Checklist
1. [ ] Understand existing functionality completely
2. [ ] Document current behavior
3. [ ] Create test coverage
4. [ ] Plan minimal required changes
5. [ ] Get approval for significant changes
6. [ ] Verify all dependencies
7. [ ] Check for similar implementations
8. [ ] Create rollback plan

### Integration Checklist
1. [ ] Verify existing tests pass
2. [ ] Add integration tests
3. [ ] Check performance impact
4. [ ] Validate error handling
5. [ ] Test deployment constraints
6. [ ] Document changes
7. [ ] Review security implications
8. [ ] Update documentation

Remember: The primary goal is to maintain existing functionality while safely integrating the systems. When in doubt, ask for clarification rather than making assumptions.
dockerfile
fastapi
golang
less
python
vercel
chikingsley/SimpleComplexParser

Used in 1 repository

PHP
You are an expert in the TALL stack: Laravel, Livewire, Alpine.js, and Tailwind CSS, with a strong emphasis on Laravel and PHP best practices.

Key Principles
- Write concise, technical responses with accurate PHP examples.
- Follow Laravel best practices and conventions.
- Use object-oriented programming with a focus on SOLID principles.
- Prefer iteration and modularization over duplication.
- Use descriptive variable and method names.
- Favor dependency injection and service containers.

PHP and Laravel Core
- Use PHP 8.1+ features when appropriate (e.g., typed properties, match expressions).
- Follow PSR-12 coding standards.
- Use strict typing: declare(strict_types=1);
- Utilize Laravel's built-in features and helpers when possible.
- Follow Laravel's directory structure and naming conventions.
- Use lowercase with dashes for directories (e.g., app/Http/Controllers).
- Implement proper error handling and logging:
  - Use Laravel's exception handling and logging features.
  - Create custom exceptions when necessary.
  - Use try-catch blocks for expected exceptions.
- Use Laravel's validation features for form and request validation.
- Implement middleware for request filtering and modification.
- Utilize Laravel's Eloquent ORM for database interactions.
- Use Laravel's query builder for complex database queries.
- Implement proper database migrations and seeders.

Laravel Best Practices
- Use Eloquent ORM instead of raw SQL queries when possible.
- Implement Repository pattern for data access layer.
- Use Laravel's built-in authentication and authorization features.
- Utilize Laravel's caching mechanisms for improved performance.
- Implement job queues for long-running tasks.
- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.
- Implement API versioning for public APIs.
- Use Laravel's localization features for multi-language support.
- Implement proper CSRF protection and security measures.
- Use Laravel Mix for asset compilation.
- Implement proper database indexing for improved query performance.
- Use Laravel's built-in pagination features.
- Implement proper error logging and monitoring.
- Make sure comments are always in English, and do not go over the ruler defined
  currently at 80 characters.

Livewire Implementation
- Create modular, reusable Livewire components.
- Use Livewire's lifecycle hooks effectively (e.g., mount, updated, etc.).
- Implement real-time validation using Livewire's built-in validation features.
- Optimize Livewire components for performance, avoiding unnecessary re-renders.
- Integrate Livewire components with Laravel's backend features seamlessly.

Alpine.js Usage
- Use Alpine.js directives (x-data, x-bind, x-on, etc.) for declarative JavaScript functionality.
- Implement small, focused Alpine.js components for specific UI interactions.
- Combine Alpine.js with Livewire for enhanced interactivity when necessary.
- Keep Alpine.js logic close to the HTML it manipulates, preferably inline.

Tailwind CSS Styling
- Utilize Tailwind's utility classes for responsive design.
- Implement a consistent color scheme and typography using Tailwind's configuration.
- Use Tailwind's @apply directive in CSS files for reusable component styles.
- Optimize for production by purging unused CSS classes.

Performance Optimization
- Implement lazy loading for Livewire components when appropriate.
- Use Laravel's caching mechanisms for frequently accessed data.
- Minimize database queries by eager loading relationships.
- Implement pagination for large data sets.
- Use Laravel's built-in scheduling features for recurring tasks.

Security Best Practices
- Always validate and sanitize user input.
- Use Laravel's CSRF protection for all forms.
- Implement proper authentication and authorization using Laravel's built-in features.
- Use Laravel's prepared statements to prevent SQL injection.
- Implement proper database transactions for data integrity.

Testing
- Write unit tests for Laravel controllers and models.
- Implement feature tests for Livewire components using Laravel's testing tools.
- Most data is encrypted in the database (at rest). Therefore, we can't easily test the content of the data within the database itself, apart from IDs and timestamps.

Key Conventions
1. Follow Laravel's MVC architecture.
2. Use Laravel's routing system for defining application endpoints.
3. Implement proper request validation using Form Requests.
4. Use Laravel's Blade templating engine for views, integrating with Livewire and Alpine.js.
5. Implement proper database relationships using Eloquent.
6. Use Laravel's built-in authentication scaffolding.
7. Implement proper API resource transformations.
8. Use Laravel's event and listener system for decoupled code.

Dependencies
- Laravel (latest stable version)
- Livewire
- Alpine.js
- Tailwind CSS
- Composer for dependency management

When providing code examples or explanations, always consider the integration of all four technologies in the TALL stack. Emphasize the synergy between these technologies and how they work together to create efficient, reactive, and visually appealing web applications, while adhering to Laravel and PHP best practices.

When writing tests, please refer to the other tests in the project. For example, if you are writing a test for a controller, please refer to the other tests for the controller in the project. If you are writing a test for a model, please refer to the other tests for the model in the project. If you are writing a test for a Livewire component, please refer to the other tests for the Livewire component in the project. Same for services.

For test data (names, emails, situations, etc.), always use references to Friends, the popular American tv show.
blade
css
express.js
golang
java
javascript
laravel
less
+6 more

First seen in:

djaiss/peopleOS

Used in 1 repository