Development Setup
This guide will help you set up your development environment for contributing to Trapster.
Prerequisites
- Python 3.11 or higher
- Git
- A code editor (VS Code, PyCharm, etc.)
- Docker (optional, for container-based development)
Initial Setup
Fork the repository on GitHub
Clone your fork:
bash
git clone https://github.com/YOUR_USERNAME/trapster-community.git
cd trapster-community- Create a virtual environment:
bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install development dependencies:
bash
pip install -r requirements.txtDevelopment Workflow
- Create a new branch for your feature:
bash
git checkout -b feature/your-feature-name- Commit your changes:
bash
git add .
git commit -m "feat: add new feature"- Push to your fork:
bash
git push origin feature/your-feature-name- Create a Pull Request on GitHub
Common Issues
Port conflicts: If you're running multiple instances, use different ports in your config
Permission errors: When running on ports < 1024, use:
bash
sudo setcap 'cap_net_bind_service=+ep' /path/to/venv/bin/python3- Import errors: Ensure you're in your virtual environment:
bash
which python # Should point to your venvGetting Help
- Check the Troubleshooting Guide
- Open an issue on GitHub
