Thank you for considering contributing to CraftHaven! We welcome your help to improve and enhance our online shopping platform.
Before you start contributing, please follow these steps:
-
Fork the Repository: Click the "Fork" button at the top right corner of the CraftHaven repository on GitHub. This will create a copy of the repository in your own GitHub account.
-
Clone Your Fork: Clone the repository from your account to your local machine using the following command:
git clone https://github.com/karprabha/shopping-cart
-
Set Up Remote: To keep your fork up to date with the original repository, add the original repository as a remote. Replace upstream with any name you prefer:
git remote add upstream https://github.com/yourusername/shopping-cart
-
Create a Branch: Create a new branch for your contribution. Choose a descriptive name for your branch that indicates the feature or bug you're working on:
git checkout -b feature/your-feature-name
Now you can make changes to the codebase. Whether you're fixing a bug, implementing a new feature, or improving documentation, please follow these guidelines:
- Write clean and maintainable code.
- Follow the existing coding style and conventions.
- Include appropriate comments and documentation.
- Ensure your changes don't introduce new issues or break existing functionality.
- Test your changes thoroughly.
Please follow best practices for commit messages:
- Use a clear and concise message that describes your changes.
- Start the message with a capitalized verb in the present tense (e.g., "Add feature" instead of "Added feature").
- Reference any relevant issue numbers using the # symbol (e.g., "#123").
When your contribution is ready, create a Pull Request (PR) to merge your changes into the main repository. Here's how to do it:
-
Push Changes: Commit and push your changes to your forked repository:
git push origin feature/your-feature-name
-
Create Pull Request: Visit the original CraftHaven repository and click the "New Pull Request" button. Select your branch and provide a brief description of your changes.
-
Review Process: Your PR will undergo a review process by the maintainers. Be prepared to make any necessary revisions based on feedback.
-
Approval and Merge: Once your changes are approved, they will be merged into the main repository. Congratulations on your contribution!
Please note that we have a Code of Conduct that all contributors are expected to adhere to. Make sure to review and follow it in all interactions within the CraftHaven community.