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: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,14 +50,14 @@ To view a live example, **[click here](https://ashutosh1919.github.io/)**
50
50
- While installing `nodejs` and `npm`, try to install versions which are equal or greater than the versions mentioned in badges above
51
51
- In case you want to help developing it or simply saving it, you can fork the repository just by clicking the button on the top-right corner of this page
52
52
- After the successful installation of `nodejs` and `npm`, clone the repository into your local system using below command:
This will clone the whole repository in your system.
57
57
- To download required dependencies to your system, navigate to the directory where the cloned repository resides and execute following command:
58
-
```node
59
-
npm install
60
-
```
58
+
```node
59
+
npm install
60
+
```
61
61
- Now the project is ready to use
62
62
- You can check it using `npm start`, it will open the website locally on your browser.
63
63
@@ -100,17 +100,17 @@ You can change the personal information, experience, education, social media, ce
100
100
### Github Information
101
101
102
102
You will find `git_data_fetcher.mjs` file in the main directory of the repository. This file is used to fetch the data (Pull requests, Issues, Organizations, Pinned projects etc.) from your github.
103
-
If you open the file, you will see below component at the top of the file. You need to change only that component.
103
+
104
+
In the project you will see a `env.example` file, create a new file named `.env` and copy contents of `env.example` into it. In that file, you will see the following environment variables
104
105
105
106
```javascript
106
-
const openSource = {
107
-
githubConvertedToken: "Your Github Token Here.",
108
-
githubUserName: "Your Github Username Here.",
109
-
};
107
+
GITHUB_TOKEN= your_token;
108
+
GITHUB_USERNAME= your_username;
110
109
```
111
110
112
-
You can get a github token as described [here](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). Give all permissions while generating token. Also add your `githubUserName` in the correct field inside `git_data_fetcher.mjs`.
113
-
Now, you need to run following command.
111
+
You can get a github token as described [here](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). Give all permissions while generating token. Add your github username and the token generated in `GITHUB_USERNAME` and `GITHUB_TOKEN` variables in the .env file.
112
+
113
+
Now, you need to run following command. (Make sure you executed `npm install` before this)
114
114
115
115
**Warning:** Treat your tokens like passwords and keep them secret. When working with the API, use tokens as environment variables instead of hardcoding them into your programs.
0 commit comments