Welcome to the Grobots Website project! We're excited to have you contribute. Follow these steps to get started:
Handled by: Akshat Srivastava Contributors: Devesh Agarwal
Before you start contributing, make sure you have the following prerequisites in place:
-
Create a New Virtual Environment and Activate It:
- Set up a new virtual environment to isolate your project dependencies:
python3 -m venv grobots-env - Activate the virtual environment:
- On Windows:
grobots-env\Scripts\activate - On macOS and Linux:
source grobots-env/bin/activate
- On Windows:
- Set up a new virtual environment to isolate your project dependencies:
-
Install Python3 and Flask:
- Make sure you have Python 3.x installed on your system.
- Install Flask using:
pip install flask
-
Install Required Dependencies:
- Navigate to the project directory and install the necessary dependencies:
cd grobots-website # Navigate to the project directory pip install -r requirements.txt
- Navigate to the project directory and install the necessary dependencies:
-
Fork the Repository:
- Click the "Fork" button at the top-right of this repository's page to create your own fork.
-
Clone the Repository:
- Clone your forked repository to your local machine:
git clone <repository-url>
- Clone your forked repository to your local machine:
-
**Activate the Virtual Environment: **
- Ensure that your virtual environment is activated:
- On Windows:
grobots-env\Scripts\activate - On macOS and Linux:
source grobots-env/bin/activate - Additionally you can press ctrl+p, and create a new enviormnent`
- On Windows:
- Ensure that your virtual environment is activated:
-
Create a New Branch:
- Create a new branch for your changes:
git checkout -b feature/new-feature - Choose a descriptive name like
feature/new-featureorbugfix/issue-number.
- Create a new branch for your changes:
-
Make Changes:
- Make necessary changes to the website's code, content, or other relevant files.
-
Commit Changes:
- Stage your changes:
git add . - Commit your changes with a clear message:
git commit -m "Add descriptive commit message"
- Stage your changes:
-
Push to Your Fork:
- Push your changes to your forked repository:
git push origin feature/new-feature
- Push your changes to your forked repository:
-
Create a Pull Request (PR):
- Visit the original repository.
- Click "New Pull Request."
- Set the base repository and branch to the main branch of Grobots Website.
- Set the head repository and branch to your fork and the branch you created.
- Write a descriptive title and comment for your pull request.
- Click "Create Pull Request" to submit.
-
Review and Discuss:
- Engage in the discussion about your PR.
- Make any necessary changes based on feedback.
-
Merge or Close:
- Once your PR is approved, a maintainer will merge it into the main branch.
- Address feedback and update your branch if required.
-
Sync with Upstream:
- Keep your fork up-to-date by syncing with the original project:
git remote add upstream <original-repository-url> git fetch upstream git merge upstream/main
- Keep your fork up-to-date by syncing with the original project:
You've made a contribution to the Grobots Website project. Your efforts are now part of our open-source community.