Contributing to BIM Guard
We welcome contributions to both the Next.js frontend and the FastAPI backend! Here is the standard development workflow to get you started.
Git Workflow
Follow these steps to contribute code to the repository.
1. Fork the Repository
- Navigate to the original repository at https://github.com/osama-ata/bim-guard.
- Click the Fork button in the top right corner.
- Select your personal account as the destination for the fork.
2. Clone and Open in VS Code
Once you have forked the repository, clone it locally and open it using Visual Studio Code:
# Clone your fork (replace YOUR_USERNAME with your GitHub username)
git clone https://github.com/YOUR_USERNAME/bim-guard.git
# Navigate into the project directory
cd bim-guard
# Open in VS Code
code .
3. Create a Feature Branch
Always create a new branch for your feature or bug fix:
4. Pull Latest Changes
Before starting new work or pushing your changes, it is good practice to ensure your branch is up to date with the original repository (the upstream):
# Add the original repository as 'upstream' (only need to do this once)
git remote add upstream https://github.com/osama-ata/bim-guard.git
# Fetch the latest changes
git fetch upstream
# Rebase or merge the latest main into your branch
git merge upstream/main
5. Push Your Changes
After writing and committing your code in VS Code, push your branch to your forked repository on GitHub:
6. Open a Pull Request (PR)
- Go to your forked repository on GitHub:
https://github.com/YOUR_USERNAME/bim-guard. - You will see a banner indicating you recently pushed a branch. Click Compare & pull request.
- Ensure the base repository is
osama-ata/bim-guardand the base branch ismain. - Add a clear title and description outlining the changes you made.
- Click Create pull request.
Thank you for contributing!