Welcome to the Code Contributions project! This repository serves as a playground for developers to practice making their first open-source contributions.
The main goal of this project is to help beginners understand the workflow of contributing to open-source projects on GitHub. By adding a "card" (a simple HTML file) with your information, you learn how to:
- Fork a repository.
- Clone it to your local machine.
- Create a branch.
- Make changes and commit them.
- Push changes to your fork.
- Open a Pull Request (PR).
contributors/: Contains individual HTML files for each contributor. This is where you will add your file.docs/: Contains documentation and guides, includingCONTRIBUTING.md.scripts/: Contains JavaScript and Shell scripts that manage the loading and generation of contributor cards.load-cards.js: Dynamically loads contributor cards into the main page.contributors.js: A list of all contributor files (generated or updated manually).generate-cards.sh: A script to automatically updatecontributors.js.
index.html: The main entry point of the website.style.css: The stylesheet for the project.
To view the project locally:
- Clone the repository:
git clone https://github.com/Roshanjossey/code-contributions.git
- Navigate to the project directory:
cd code-contributions - Open
index.htmlin your browser: You can double-click the file in your file explorer, or use a simple HTTP server (e.g.,python3 -m http.serverand go tolocalhost:8000).
We have a detailed guide to help you get started.
👉 Read the Contribution Guide
- Create a file named
<your-username>.htmlin thecontributors/folder. - Add your details using the provided HTML template.
- Add your filename to
scripts/contributors.js. - Submit a Pull Request!
The codebase is documented to help you understand how the dynamic loading of cards works.
- JavaScript: documented using JSDoc.
- Shell Scripts: documented with header comments and inline explanations.
This project is available in multiple languages: