Thank you for considering contributing to a6-e-shop! We value your contributions and look forward to your involvement in enhancing the project. This guide will help you get started and provide instructions on how to contribute effectively.
-
Fork this repository
Visit the repository and click the "Fork" button to create a copy of the repository in your GitHub account. -
Clone your forked repository to your local machine
git clone https://github.com/<YOUR_USERNAME>/a6-e-shop.git
-
Navigate to the project directory
cd a6-e-shop
-
Create a new branch for your changes
git checkout -b my-new-feature
-
Install dependencies
yarn install
-
Set up environment variables
Create a
.env.local
file by copying the example:cp .env.example .env.local
Fill in the required environment variables.
-
Run the project
Start the development server:
yarn dev
- Add your new component in the appropriate directory, such as
src/components/
, depending on the feature or component you are contributing.
- If applicable, update the pages or templates that utilize your new component. For example, you may need to update
/src/pages/templates/[template].tsx
to include your new component.
- Ensure that your changes are working as expected. You can add unit tests for your component if necessary.
- Document the functionality of your component or feature in the relevant Markdown files, such as
README.md
ordocs/
.
-
Push your branch to your fork
git push origin my-new-feature
-
Open a pull request
Go to your forked repository on GitHub and click on the "Compare & pull request" button. Provide a clear title and description for your pull request, outlining the changes you made.
-
Address Feedback
Collaborate with the project maintainers by addressing any feedback or requested changes. Once your pull request is approved, it will be merged into the main repository.
- Follow the existing coding style and conventions used in the project.
- Use meaningful names for variables, functions, and components.
- Ensure that your code is well-structured and easy to understand.
- Write clear and concise commit messages.
- Use the present tense and capitalize the first letter (e.g., "Add feature X").
- If possible, write tests for your changes.
- Ensure that existing tests pass before submitting your pull request.
If you have any questions or need assistance, feel free to open an issue on GitHub, and we'll be happy to help
This CONTRIBUTING.md
file should give clear guidance to potential contributors and ensure that contributions are consistent and well-documented.