Skip to content

Commit

Permalink
Documentation: UPDATE Of Contributing.md StephCurry07#37
Browse files Browse the repository at this point in the history
  • Loading branch information
A-N-U-HERE authored Oct 23, 2024
1 parent 432159e commit 0bf2345
Showing 1 changed file with 262 additions and 0 deletions.
262 changes: 262 additions & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,265 @@
Welcome to our project! We're thrilled to have you contribute. Your efforts, big or small, make a difference. Please ensure that you follow our [Code of Conduct](CODE_OF_CONDUCT.md) in all interactions.

<br>

# Need Help with the Basics? ๐Ÿค”

If you're new to Git and GitHub, no worries! Here are some useful resources:

- [Forking a Repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)
- [Cloning a Repository](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request)
- [How to Create a Pull Request](https://opensource.com/article/19/7/create-pull-request-github)
- [Getting Started with Git and GitHub](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6)
- [Learn GitHub from Scratch](https://docs.github.com/en/get-started/start-your-journey/git-and-github-learning-resources)


# Project Structure ๐Ÿ“‚

```bash
Ether-Wheels/
โ”œโ”€โ”€ .github/ # Configuration files for GitHub, including issue templates
โ”‚ โ”œโ”€โ”€ ISSUE_TEMPLATE/ # Issue templates for reporting bugs and feature requests
โ”‚ โ”‚ โ”œโ”€โ”€ bug_report.md
โ”‚ โ”‚ โ””โ”€โ”€ feature_request.md
โ”‚ โ””โ”€โ”€ workflows/ # CI/CD workflows
โ”‚ โ””โ”€โ”€ pr_validation.yml
โ”œโ”€โ”€ blockchain/ # Smart contracts for the blockchain application
โ”‚ โ”œโ”€โ”€ contracts/ # Solidity contracts
โ”‚ โ”‚ โ”œโ”€โ”€ CarPooling.sol
โ”‚ โ”‚ โ””โ”€โ”€ PriceConverter.sol
โ”‚ โ””โ”€โ”€ deploy/ # Deployment scripts
โ”‚ โ””โ”€โ”€ 01-deploy-carpooling.js
โ”œโ”€โ”€ deployments/ # Deployment configurations
โ”‚ โ”œโ”€โ”€ localhost/
โ”‚ โ””โ”€โ”€ sepolia/
โ”œโ”€โ”€ scripts/ # Utility scripts
โ”‚ โ”œโ”€โ”€ bookRide.js
โ”‚ โ”œโ”€โ”€ cancelRide.js
โ”‚ โ”œโ”€โ”€ createRide.js
โ”‚ โ””โ”€โ”€ getRide.js
โ”œโ”€โ”€ utils/ # Utility functions and helpers
โ”‚ โ””โ”€โ”€ verify.js
โ”œโ”€โ”€ .gitignore # Git ignore file for untracked files
โ”œโ”€โ”€ README.md # Main README file with project details
โ”œโ”€โ”€ hardhat.config.js # Hardhat configuration file
โ”œโ”€โ”€ helper-hardhat.config.js # Helper configuration for Hardhat
โ”œโ”€โ”€ package.json # Project dependencies and scripts
โ”œโ”€โ”€ yarn.lock # Yarn lock file for dependency management
โ”œโ”€โ”€ frontend/ # Frontend application files
โ”‚ โ”œโ”€โ”€ app/ # Application components
โ”‚ โ”‚ โ”œโ”€โ”€ api/ # API routes
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ route.jsx
โ”‚ โ”‚ โ”œโ”€โ”€ create-ride/ # Create ride components
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ layout.jsx
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ”‚ โ”œโ”€โ”€ get-rides/ # Get rides components
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ layout.jsx
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ”‚ โ”œโ”€โ”€ my-rides/ # My rides components
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ layout.jsx
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ”‚ โ””โ”€โ”€ register/ # User registration components
โ”‚ โ”‚ โ”œโ”€โ”€ driver/
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ”‚ โ””โ”€โ”€ passenger/
โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ””โ”€โ”€ styles/ # CSS styles
โ”‚ โ”œโ”€โ”€ enlarged-card-modal.module.css
โ”‚ โ”œโ”€โ”€ get-rides.module.css
โ”‚ โ”œโ”€โ”€ my-rides-card.css
โ”‚ โ””โ”€โ”€ user-registration.module.css
โ”œโ”€โ”€ test/ # Test files
โ”‚ โ”œโ”€โ”€ ui/ # UI tests
โ”‚ โ”‚ โ”œโ”€โ”€ chatbot.css
โ”‚ โ”‚ โ”œโ”€โ”€ layout.jsx
โ”‚ โ”‚ โ”œโ”€โ”€ loading.jsx
โ”‚ โ”‚ โ””โ”€โ”€ page.jsx
โ”‚ โ””โ”€โ”€ components/ # Component tests
โ”‚ โ”œโ”€โ”€ EnlargedCardModal.jsx
โ”‚ โ”œโ”€โ”€ GetRidesCard.jsx
โ”‚ โ”œโ”€โ”€ Header.jsx
โ”‚ โ”œโ”€โ”€ MyRidesCard.jsx
โ”‚ โ””โ”€โ”€ PrimaryButton.jsx
โ”œโ”€โ”€ public/ # Public assets
โ”‚ โ”œโ”€โ”€ images/ # Image assets
โ”‚ โ”‚ โ”œโ”€โ”€ car.png
โ”‚ โ”‚ โ”œโ”€โ”€ car2.png
โ”‚ โ”‚ โ”œโ”€โ”€ carpooling.svg
โ”‚ โ”‚ โ”œโ”€โ”€ driver.jpg
โ”‚ โ”‚ โ”œโ”€โ”€ ewLogo.ico
โ”‚ โ”‚ โ”œโ”€โ”€ ewLogo.jpeg
โ”‚ โ”‚ โ”œโ”€โ”€ ewLogo.png
โ”‚ โ”‚ โ””โ”€โ”€ passenger.jpg
โ”‚ โ”œโ”€โ”€ favicon.ico # Favicon for the application
โ”‚ โ”œโ”€โ”€ next.svg # SVG assets
โ”‚ โ””โ”€โ”€ vercel.svg
โ”œโ”€โ”€ utils/ # Additional utilities
โ”‚ โ”œโ”€โ”€ CarPooling.json
โ”‚ โ”œโ”€โ”€ CarPoolingcamp.json
โ”‚ โ”œโ”€โ”€ cars-final.csv
โ”‚ โ””โ”€โ”€ toastService.js
โ”œโ”€โ”€ .env.example # Example environment variables file
โ”œโ”€โ”€ jsconfig.json # Configuration for JavaScript
โ”œโ”€โ”€ next.config.mjs # Next.js configuration file
โ”œโ”€โ”€ package-lock.json # Lock file for npm dependencies
โ”œโ”€โ”€ CODE_OF_CONDUCT.md # Code of conduct for contributors
โ”œโ”€โ”€ CONTRIBUTING.md # Guidelines for contributing to the project
โ”œโ”€โ”€ Contributors.md # List of contributors
โ””โ”€โ”€ LICENSE # License file for the project
```

# First Pull Request โœจ

1. **Star this repository**
Click on the top right corner marked as **Stars** at last.

2. **Fork this repository**
Click on the top right corner marked as **Fork** at second last.

3. **Clone the forked repository**

```bash
git clone https://github.com/<your-github-username>/Ether-Wheels.git
```

4. **Navigate to the project directory**

```bash
cd Ether-Wheels
```

5. **Create a new branch**

```bash
git checkout -b <your_branch_name>
```

6. **To make changes**

```bash
git add .
```

7. **Now to commit**

```bash
git commit -m "add comment according to your changes or addition of features inside this"
```

8. **Push your local commits to the remote repository**

```bash
git push -u origin <your_branch_name>
```

9. **Create a Pull Request**

10. **Congratulations! ๐ŸŽ‰ you've made your contribution**

<br>

# Alternatively contribute using GitHub Desktop ๐Ÿ–ฅ๏ธ

1. **Open GitHub Desktop:**
Launch GitHub Desktop and log in to your GitHub account if you haven't already.

2. **Clone the Repository:**
- If you haven't cloned the repository yet, you can do so by clicking on the "File" menu and selecting "Clone Repository."
- Choose the repository from the list of repositories on GitHub and clone it to your local machine.

3. **Switch to the Correct Branch:**
- Ensure you are on the branch that you want to submit a pull request for.
- If you need to switch branches, you can do so by clicking on the "Current Branch" dropdown menu and selecting the desired branch.

4. **Make Changes:**
Make your changes to the code or files in the repository using your preferred code editor.

5. **Commit Changes:**
- In GitHub Desktop, you'll see a list of the files you've changed. Check the box next to each file you want to include in the commit.
- Enter a summary and description for your changes in the "Summary" and "Description" fields, respectively. Click the "Commit to <branch-name>" button to commit your changes to the local branch.

6. **Push Changes to GitHub:**
After committing your changes, click the "Push origin" button in the top right corner of GitHub Desktop to push your changes to your forked repository on GitHub.

7. **Create a Pull Request:**
- Go to the GitHub website and navigate to your fork of the repository.
- You should see a button to "Compare & pull request" between your fork and the original repository. Click on it.

8. **Review and Submit:**
- On the pull request page, review your changes and add any additional information, such as a title and description, that you want to include with your pull request.
- Once you're satisfied, click the "Create pull request" button to submit your pull request.

9. **Wait for Review:**
Your pull request will now be available for review by the project maintainers. They may provide feedback or ask for changes before merging your pull request into the main branch of the repository.

<br>


# Good Coding Practices ๐Ÿง‘โ€๐Ÿ’ป

1. **Follow the Project's Code Style**

- Maintain consistency with the existing code style (indentation, spacing, comments).
- Use meaningful and descriptive names for variables, functions, and classes.
- Keep functions short and focused on a single task.
- Avoid hardcoding values; instead, use constants or configuration files when possible.

2. **Write Clear and Concise Comments**

- Use comments to explain why you did something, not just what you did.
- Avoid unnecessary comments that state the obvious.
- Document complex logic and functions with brief explanations to help others understand your thought -process.

3. **Keep Code DRY (Don't Repeat Yourself)**

- Avoid duplicating code. Reuse functions, methods, and components whenever possible.
- If you find yourself copying and pasting code, consider creating a new function or component.

4. **Write Tests**

- Write unit tests for your functions and components.
- Ensure your tests cover both expected outcomes and edge cases.
- Run tests locally before making a pull request to make sure your changes donโ€™t introduce new bugs.

5. **Code Reviews and Feedback**

- Be open to receiving constructive feedback from other contributors.
- Conduct code reviews for others and provide meaningful suggestions to improve the code.
- Always refactor your code based on feedback to meet the project's standards.

<br>

# Pull Request Process ๐Ÿš€

When submitting a pull request, please adhere to the following:

1. **Self-review your code** before submission.
2. Include a detailed description of the functionality youโ€™ve added or modified.
3. Comment your code, especially in complex sections, to aid understanding.
4. Add relevant screenshots to assist in the review process.
5. Submit your PR using the provided template and hang tight; we'll review it as soon as possible! ๐Ÿš€

<br>

# Issue Report Process ๐Ÿ“Œ

To report an issue, follow these steps:

1. Navigate to the project's issues section :- [Issues](https://github.com/StephCurry07/Ether-Wheels/issues)
2. Provide a clear and concise description of the issue.
3. **Avoid spamming** to claim an issue. Patience is key!
4. Wait until someone looks into your report.
5. Begin working on the issue only after you have been assigned to it. ๐Ÿš€

<br>

# Thank you for contributing ๐Ÿ’—

We truly appreciate your time and effort to help improve our project. Feel free to reach out if you have any questions or need guidance. Happy coding! ๐Ÿš€

##



<h2 align = "center">Our Contributors โค๏ธ</h2>
<div align = "center">
Expand Down

0 comments on commit 0bf2345

Please sign in to comment.