Contribution
Contribute to mongox!
- With your participation,
mongoxwill become even more powerful! - You can contribute to
mongoxin the following ways:
Spread the Word About mongox
- Share
mongoxon your blog, social media, and let more people know about it. - On
GitHub, give mongox a triple hit (Star, Fork and Watch). - Write tutorials, blogs, videos, etc., to share your experience using
mongox. - Help others solve problems on Stack Overflow and Github issues.
Participate in the Development of mongox
- Submit
Pull Requestson GitHub to fix bugs or add new features. - Write plugins for
mongoxto extend its functionality.
Preparation
- Fork the Project: Before you begin, please Fork mongox into your own
GitHubrepository so that you can make modifications and submit them from your own repository. - Set Up Development Environment:
- Install Go: Ensure that you have installed Go, with a version higher than
1.18. - Install make Tool:
mongoxutilizesmaketo manage the project. Make sure you have installed themaketool. - Install Dependencies: Execute the
make setupcommand in the project's root directory. This command will install the necessary dependencies and configuregithooks, code formatting, and code checking tools.
- Install Go: Ensure that you have installed Go, with a version higher than
Contribution Process
Choose or Create an Issue (Optional): Before starting to write code, you can select an existing
Issueto address or create a newIssueto describe your work and purpose. This helps in discussing your contribution in advance and ensuring it meets the project's requirements. If you choose to skip this step, you can proceed directly to the next step of writing code.Write Code and Test Cases: Write code in your local repository based on project requirements. Follow the project's code style and standards to ensure code readability and maintainability. Additionally, remember to write corresponding test cases to validate the functionality you've implemented. Test cases should cover various scenarios, including edge and exceptional cases, to ensure code robustness and reliability.
Code Check and Formatting: Before submitting code, ensure it passes formatting and checks by running
make checkandmake lintcommands. This ensures your code complies with the project's code standards and quality criteria.Code Testing: Before submitting code, ensure it passes through the provided testing tools. You can use
make utto run unit tests andmake e2eto run integration tests.Submit Pull Request: After completing your contribution and passing local tests, submit a
Pull Requestto the main branch of this repository. Clearly describe your modifications and reference any associatedIssuein thePRdescription if applicable.
Participate in Writing Documentation for mongox
- Submit
Pull Requestson GitHub to fix documentation errors or add new documentation.