Thank you for your interest in contributing to DistributedStorage! This document provides guidelines and instructions for contributing to this project.
Please read and follow our Code of Conduct to foster an inclusive and respectful community.
Before creating a bug report:
- Check the Issues page to see if the bug has already been reported
- If you don't find an existing issue, create a new one with the "bug" label
- Include detailed steps to reproduce the issue
- Provide information about your environment (OS, Java version, etc.)
- If possible, add screenshots or logs to help explain the problem
Enhancement suggestions are tracked as GitHub issues:
- Check for existing feature requests
- Provide a clear and detailed explanation of your suggestion
- Explain why this enhancement would be useful
- If applicable, include examples of how the feature would work
Follow these steps to submit a pull request:
- Fork the repository
- Create a branch from
main - Make your changes
- Write or update tests for the changes
- Ensure all tests pass
- Update documentation if necessary
- Submit a pull request to the
mainbranch
- Java 17
- Maven 3.6+
- MySQL 8.0+
- Git
- Fork the repository
- Clone your fork:
git clone https://github.com/kenzycodex/distributed-storage.git cd distributed-storage - Add the original repository as a remote:
git remote add upstream https://github.com/original-owner/distributed-storage.git
- Create a branch for your work:
git checkout -b feature/your-feature-name
# Build the project
mvn clean package
# Run tests
mvn test
# Run the application in development mode
mvn spring-boot:run -Dspring-boot.run.profiles=dev- Follow standard Java naming conventions
- Use 4 spaces for indentation
- Maximum line length of 120 characters
- Always include braces for control structures (if, for, while, etc.)
- Add meaningful comments for complex logic
- Use a clear and descriptive title
- Begin with an action verb (Add, Fix, Update, Refactor, etc.)
- Keep the first line under 50 characters
- Provide more details in the body if necessary
- Reference related issues when applicable
Example:
Add weighted load balancing strategy
- Implements a new load balancing algorithm that assigns weights based on node capacity
- Adds configuration options for weight calculation
- Updates documentation with new strategy details
Fixes #42
- Update README.md if you add or change features
- Document public APIs with Javadoc
- Keep documentation in sync with code changes
- Use Markdown for documentation files
- Each pull request requires at least one review before merging
- Maintainers may request changes or improvements
- All automated tests must pass
- Code style and documentation requirements must be met
By contributing to DistributedStorage, you agree that your contributions will be licensed under the same MIT License that covers the project.
If you have any questions or need help, feel free to open an issue with the "question" label or contact the maintainers directly.
Thank you for contributing to DistributedStorage!