Skip to content

Commit 5047517

Browse files
committed
chore(docs): add new workflow for easy onboarding of new contributors
1 parent 58930a2 commit 5047517

1 file changed

Lines changed: 54 additions & 33 deletions

File tree

CONTRIBUTING.md

Lines changed: 54 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
# How to contribute
1+
# How to contribute to React Developers Kenya (Reactdevske) Website
22

33
Please note we have a [code of conduct](https://github.com/reactdeveloperske/reactdevske-website/blob/main/CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.
44

55
## Contributing procedure
66

7-
### Submit an issue
7+
8+
### Find an issue to work on
9+
10+
- You can contribute to this project by either creating an issue or by checking out the open issues available.
11+
12+
#### 1. Submit an issue
813

914
- Create a [new issue](https://github.com/reactdeveloperske/reactdevske-website/issues)
1015
- Comment on the issue (if you'd like to be assigned to it) - that way the issue can be assigned to you.
1116

12-
### Open issues
17+
#### 2. Open issues
1318

1419
- Go to [open issues](https://github.com/reactdeveloperske/reactdevske-website/issues)
1520
- select an issue of your choice that is `open` or `need help` or is `up-for-grabs` and is not assigned.
@@ -19,7 +24,7 @@ Please note we have a [code of conduct](https://github.com/reactdeveloperske/rea
1924

2025
- If you're not sure, here's how to [fork the repo](https://help.github.com/en/articles/fork-a-repo)
2126

22-
### Set up your local environment (optional)
27+
#### Set up your local environment (optional)
2328

2429
If you're ready to contribute and create your PR, it will help to set up a local environment so you can see your changes.
2530

@@ -34,38 +39,34 @@ If you're ready to contribute and create your PR, it will help to set up a local
3439

3540
If this is your first time forking our repo, this is all you need to do for this step:
3641

37-
```
38-
$ git clone git@github.com:[your_github_handle]/reactdevske-website.git && cd reactdevske-website
42+
```bash
43+
git clone git@github.com:[your_github_handle]/reactdevske-website.git && cd reactdevske-website
3944
```
4045

41-
Make sure you checkout the `develop` branch `git checkout develop`
46+
Make sure you checkout the `develop` branch by running the command `git checkout develop`
4247

43-
If you've already forked the repo, you'll want to ensure your fork is configured and that it's up to date. This will save you the headache of potential merge conflicts.
48+
If you've already forked the repo and created the develop branch, you'll want to ensure your fork and your develop branch is configured and that it's up to date. This will save you the headache of potential merge conflicts.
4449

4550
To [configure your fork](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork):
4651

4752
```
4853
$ git remote add upstream https://github.com/reactdeveloperske/reactdevske-website.git
4954
```
5055

51-
To [sync your fork with the latest changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork):
56+
To [sync your fork and branch with the latest changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork):
5257

53-
```
54-
$ git checkout develop
55-
$ git fetch upstream
56-
$ git merge upstream/develop
58+
```bash
59+
git checkout develop
60+
git fetch upstream
61+
git merge upstream/develop
5762
```
5863

5964
3. Install dependencies
6065

61-
```
62-
$ yarn install
63-
```
64-
65-
or
66+
We use [npm](https://www.npmjs.com/) to manage dependencies. To install all dependencies, run:
6667

67-
```
68-
$ npm install
68+
```bash
69+
npm install
6970
```
7071

7172
<br>
@@ -76,49 +77,69 @@ $ npm install
7677

7778
1. Create new branch for your changes
7879

79-
```
80-
$ git checkout -b new_branch_name
80+
```bash
81+
git checkout -b new_branch_name
8182
```
8283

8384
2. start development server
8485

85-
```
86-
$ yarn run dev
87-
```
8886

89-
or
9087

91-
```
88+
```bash
9289
npm run dev
9390
```
9491

9592
<br>
9693

97-
### Start developing!
94+
***
95+
##### :warning: RoadBlock: Missing environment variables
96+
97+
9898

99+
You may have noticed some error about providing a form key. This is because we use [Formspree](https://formspree.io/) to handle our contact form. To get around this, you can:
100+
101+
- Use your own [Formspree](https://formspree.io/) account and set the `FORMSPREE_KEY` environment variable to your key. (refer to the .env.example file for guidance on where to put your formspee key).
102+
103+
You may have also noticed a second error about missing required parameters: sitekey. This is because we use [reCAPTCHA](https://www.google.com/recaptcha/about/) to prevent spam. To get around this, you can:
104+
105+
- Use your own [reCAPTCHA](https://www.google.com/recaptcha/about/) account and set the `RECAPTCHA_SITE_KEY` environment variable to your keys. (refer to the .env.example file for guidance on where to put your recaptcha site key).
106+
107+
108+
Both of these changes will require you to create a `.env` file in the root directory of the project. You can copy the contents of the `.env.example` file and paste them into the `.env` file. Then, you can add your keys to the appropriate variables.
109+
110+
***
99111
<br>
100112

113+
3. Make changes to the codebase
114+
101115
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:3000` from your browser
102116
- Pro Tip: Explore scripts within `package.json` for more build options
103117

104118
1. Add changes made to the repo addressing an issue
105-
```
119+
120+
```bash
106121
git add [file_name]
107122
```
123+
108124
2. Commit and prepare for pull request (PR). In your PR commit message, reference the issue it resolves (see [how to link a commit message to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).
109125

110-
```
111-
$ git commit -m "brief description of changes [Fixes #1234]"
126+
```bash
127+
git commit -m "brief description of changes [Fixes #1234]"
112128
```
113129

114130
1. Push to your GitHub account
115131

116-
```
117-
$ git push -u origin [feature_branch]
132+
```bash
133+
git push -u origin [feature_branch]
118134
```
119135

120136
### Submit your Pull Request (PR)🚀
121137

122138
- After your changes are commited to your GitHub fork, submit a pull request (PR) to the `develop` branch of the `reactdeveloperske/reactdevske-website` repo
123139
- In your PR description, reference the issue it resolves (see [linking a pull request to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
124140
- ex. `Updates out of date content [Fixes #1234]`
141+
142+
### Sit back, relax and wait for your PR to be reviewed/merged
143+
144+
- We'll review your PR as soon as possible
145+
- We may suggest some changes or improvements or alternatives.

0 commit comments

Comments
 (0)