You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+27-23Lines changed: 27 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Configure MySQL and make sure it is running on your machine before you proceed w
36
36
37
37
1. You'll need to [create a GitHub OAuth App](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app) on your personal GitHub account. Creating a GitHub OAuth App will automatically generate a `Client_ID` and will also enable you to generate a `Client_Secret` for your OAuth App. Store these values safely because they will be needed while generating a `.env` file for the first time.
38
38
39
-
2. Create your personal [Augur Application](https://projectbadge.chaoss.io/account/settings?section=application) in order to generate an 'augur_client_secret'. Following the link, you will click on "register" and then fill in a couple of fields as required which will set up an account which you will log into. Click on your username(the one you filled in for the "user ID") at the top left and select "profile" which will take you to account settings. Under the account settings, in the left sidebar, click on "applications" and create a new application by entering an App name and a Redirect URL which will generate the `augur_client_secret` which will be listed in the last column of **_Your Apps_** table. Store the `augur_client_secret` together with the above GitHub OAuth credentials since it will be needed too while generating a `.env` file for the first time. The `augur_client_secret` which is the `AUGUR_CLIENT_SECRET` key is used to connect to the Augur API to submit repositories to the Augur Library for further badging.
39
+
2. Create your personal [Augur Application](https://projectbadge.chaoss.io/account/settings?section=application) in order to generate an 'augur*client_secret'. Following the link, you will click on "register" and then fill in a couple of fields as required which will set up an account which you will log into. Click on your username(the one you filled in for the "user ID") at the top left and select "profile" which will take you to account settings. Under the account settings, in the left sidebar, click on "applications" and create a new application by entering an App name and a Redirect URL which will generate the `augur_client_secret` which will be listed in the last column of \*\*\_Your Apps*\*\* table. Store the `augur_client_secret` together with the above GitHub OAuth credentials since it will be needed too while generating a `.env` file for the first time. The `augur_client_secret` which is the `AUGUR_CLIENT_SECRET` key is used to connect to the Augur API to submit repositories to the Augur Library for further badging.
40
40
41
41
After generating those values,
42
42
@@ -57,7 +57,7 @@ After generating those values,
57
57
npm install # installs packages and dependencies
58
58
```
59
59
60
-
2.**Make sure project is running**: This starts a *.env* configuration process if the *.env* file is missing.
60
+
2.**Make sure project is running**: This starts a _.env_ configuration process if the _.env_ file is missing.
61
61
62
62
```bash
63
63
npm run dev # this command will trigger a series of configuration questions in order setup your environmental variables
@@ -98,39 +98,43 @@ BadgingAPI follows a specific code style and coding standards. Please make sure
98
98
99
99
-**Variables and functions**: camelCase
100
100
101
-
````markdown
102
-
myVariable = 10;
103
-
104
-
function exampleFunction() {
105
-
return "Hello, World!"
106
-
};
101
+
```markdown
102
+
myVariable = 10;
103
+
104
+
function exampleFunction() {
105
+
return "Hello, World!"
106
+
};
107
+
```
107
108
108
109
-**Classes and constructors**: PascalCase
109
110
110
-
````markdown
111
-
class MyClass {
112
-
constructor(value) {
113
-
this.value = value;
114
-
}
115
-
};
111
+
```markdown
112
+
class MyClass {
113
+
constructor(value) {
114
+
this.value = value;
115
+
}
116
+
};
117
+
```
116
118
117
119
-**Filenames, constants, and environment variables**: Snake_case
118
120
119
-
````markdown
120
-
my_file_name.txt
121
+
```markdown
122
+
my_file_name.txt
121
123
122
-
const MAX_ATTEMPTS = 5;
124
+
const MAX_ATTEMPTS = 5;
123
125
124
-
DATABASE_URL = "localhost:3000"
126
+
DATABASE_URL = "localhost:3000"
127
+
```
125
128
126
129
-**HTML attributes and CSS class names**: Kebab-case
0 commit comments