Contributing to Basic Training is the easiest way to learn how to work on open source projects.
This skill is essential because the overwhelming majority of blockchain-based projects are built via open source. If you can inspect the code, you can trust the code.
Contributing will help you improve:
- the software you use
- your existing skills
- your job prospects
- how you work with a team
- the chances to find mentors and network.
- your people skills
Although it may seem challenging, contributing to an open-source project gets easier after doing it the first time.
Stick with it, and you will master these small but essential skills.
Between participating in hackathons and contributing open source projects, they are the best way to land a job in the Ethereum ecosystem.
We use github issues for our issue tracking and project management.
We use the Forking Workflow method of open source contribution. This method allows projects to scale well with not alot of complexity.
See the primer on setting up repos.
-
Fork the
ConsenSys-Academy/basic-training
repository. -
Clone the forked repository from your GitHub profile to your desktop.
-
Add the remote repositories for origin and upstream.
Learn more about working with forks 🍴.
Open a issue. Issues are good! They are used to point out errors and suggest new features.
Read the issue. Ask any questions in the issue thread. Mention the issue that you'd like to work on this to avoid double work.
Before starting on work on the issue, make sure your code is up to date.
- Check your branch:
git branch
- Checkout the main branch of your local repo:
git checkout main
- Fetch changes from the
upstream
main repo:
git fetch upstream main
- Rebase the changes from the
upstream
master repository into your local repo:
git rebase upstream/main
- Re-synchornize
main
intodev
by merging:
git checkout dev
git merge origin/main
git push
Learn more on how to use branches 🌳.
- Check for the latest code and update.
- Branch off of
dev
. - Name your branch based on intent. See the style guide below.
- Write code.
- Commit code. See style guide.
- Push the branch to
origin
. - Open a pull request with the branch.
To keep our commit history clean, we follow these simple rules.
Types of branches:
main
- main branch that is live.feat/FEATURE
- for features.fix/THING1
- hot fixes.bug/THING2
- bug fixes.
Make sure to:
- branch your
feat/
,fix/
, orbug/
branches offmain
.
-
The First
-m
: High-level description
"Added| Edited | etc. FILE"
-
Second
-m
: Describe the code in under 240 characters.
Added x feature in sample.js and updated README.md in the section required.
git commit -m "Feature. Added GIF to README.md -m "Added the GIF was required to explain what is Solidity."
Make sure to reference the issue that you are closing.
Example: Closes #7 - Add CONTRIBUTING.md
Keep it brief but descriptive. Use links. Avoid jargon.
When possible, use pictures or gifs.
Open an issue or join our discord.
Made with ❤️ by ConsenSys