Development of this application is currently led by the [World Heat Flow Database Project](http://heatflow.world). Contributions from the community in the form of bug fixes are welcome and encouraged. However, new features should be discussed with the project maintainers before development begins.
This guide outlines the steps to contribute to this application. By following these instructions, you can fork the repository, set up a virtual environment, make changes, write tests, and submit a pull request to the main repository.
Please review the contributor [Code of Conduct](code_of_conduct.md) before contributing to this project.
Before you begin, ensure that you have the following installed on your local machine:
- Git
- [Docker](https://docs.docker.com/get-docker/
- Python Poetry (version 1.1.0 or higher)
-
Click on the "Fork" button at the top right corner of the repository page.
-
After forking, you'll be redirected to your forked repository. Copy the URL of your forked repository.
-
Open a terminal or command prompt.
-
Change to the directory where you want to clone the repository.
-
Run the following command to clone the repository:
git clone <forked_repository_url>
Replace
<forked_repository_url>
with the URL of your forked repository.
-
Change to the cloned repository's directory:
cd world-heat-flow-database
-
Run the following command to set up a virtual environment using Poetry:
poetry install
This command will create a new virtual environment and install the project's dependencies.
-
Run the following command to create a new branch:
git checkout -b <branch_name>
Replace
<branch_name>
with a descriptive name that reflects the nature of your changes.
- Use your favorite code editor to make the desired changes to the project's code.
- Follow the coding style and best practices of the project to maintain consistency.
- Ensure that the project has a testing framework in place.
- Write tests to cover your changes, ensuring that they pass successfully.
- Run the tests using the appropriate command (often provided in the project's documentation).
-
Run the following command to stage your changes for commit:
git add .
This command stages all modified files for commit. If you only want to stage specific files, replace
.
with the file paths. -
Commit your changes with a clear and concise commit message:
git commit -m "Your commit message"
Replace
"Your commit message"
with a descriptive message that explains the purpose of your changes.
-
Run the following command to push your branch to your forked repository:
git push origin <branch_name>
Replace
<branch_name>
with the name of the branch you created in Step 3.
- Visit your forked repository on GitHub.
- Click on the "Compare & pull request" button next to your pushed branch.
- Provide a detailed description of your changes and the problem they solve.
- Review your changes and ensure that all necessary information is included.
- Click on the "Create pull request" button to submit your pull request.
Congratulations! You've successfully contributed to the main repository by following these steps. Your pull request will be reviewed by the project maintainers, who may provide feedback or request further changes.