Development Setup

Set up your development environment for contributing to RouteMQ or building custom features.

Development Installation

Install RouteMQ with development dependencies:

# Install with development dependencies
uv sync --extra dev

This includes additional tools for testing, linting, and development.

Managing Dependencies

Adding Dependencies

# Add a regular dependency
uv add package-name

# Add an optional dependency (e.g., Redis)
uv add --optional redis redis

# Add a development dependency
uv add --dev pytest-cov

Removing Dependencies

Running the Application

Running Tests

Development Commands

Project Structure

Development Best Practices

  1. Write Tests: Add tests for new features in the tests/ directory

  2. Follow Naming Conventions: Use clear, descriptive names for files and classes

  3. Document Your Code: Add docstrings to functions and classes

  4. Use Type Hints: Add type hints for better code clarity

  5. Keep Routes Organized: Group related routes in separate files

Next Steps

Last updated