First off, thank you for considering contributing to Reputest! It's people like you that make open source great.
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check existing issues to avoid duplicates. When you create a bug report, include as many details as possible:
- Use a clear and descriptive title
- Describe the exact steps to reproduce the problem
- Provide specific examples (code snippets, config files)
- Describe the behavior you observed and what you expected
- Include logs with
RUST_LOG=debugif applicable - Specify your environment (OS, Rust version, Docker version)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion:
- Use a clear and descriptive title
- Provide a detailed description of the suggested enhancement
- Explain why this enhancement would be useful
- List any alternatives you've considered
- Fork the repository and create your branch from
main - Follow the coding style of the project
- Write tests for any new functionality
- Ensure all tests pass locally before submitting
- Update documentation as needed
- Write a clear PR description explaining your changes
- Rust (latest stable) - install via rustup
- Docker (for containerization)
- PostgreSQL (or use Docker)
# Clone your fork
git clone https://github.com/YOUR_USERNAME/reputest.git
cd reputest
# Create a branch for your changes
git checkout -b feature/your-feature-name
# Copy environment template
cp .env.example .env
# Edit .env with your configuration
# Set up git hooks (optional but recommended)
# This installs pre-push hooks that run Rust checks before pushing
make setup-hooks
# Or manually: ./scripts/setup_git_hooks.sh
# Run tests
cargo test
# Run with debug logging
RUST_LOG=debug cargo runBefore submitting a PR, ensure your code passes all checks:
# Format code
cargo fmt
# Run clippy lints
cargo clippy --all-targets --all-features -- -D warnings
# Run tests
cargo testOr use the Makefile:
make checkall- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests when relevant
- Update the README.md if you change functionality
- Add rustdoc comments for public functions
- Include examples in documentation where helpful
reputest/
├── src/
│ ├── main.rs # Application entry point
│ ├── config.rs # Configuration handling
│ ├── handlers.rs # HTTP route handlers
│ ├── twitter/ # Twitter API integration
│ ├── oauth.rs # OAuth 2.0 implementation
│ ├── crypto.rs # Token encryption
│ ├── db.rs # Database operations
│ ├── cronjob.rs # Scheduled tasks
│ └── tests.rs # Test suite
├── sql/ # Database schema
├── scripts/ # Utility scripts
└── docs/ # Additional documentation
Feel free to open an issue for any questions about contributing!