Skip to content

Commit a9be3c4

Browse files
Fix for git data fetcher (#156)
1 parent 0cb2368 commit a9be3c4

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ To view a live example, **[click here](https://ashutosh1919.github.io/)**
5050
- While installing `nodejs` and `npm`, try to install versions which are equal or greater than the versions mentioned in badges above.
5151
- 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.
5252
- After the successful installation of `nodejs` and `npm`, clone the repository into your local system using below command:
53-
- ```python
53+
- ```bash
5454
git clone https://github.com/ashutosh1919/masterPortfolio.git
5555
```
5656
- This will clone the whole repository in your system.
5757
- To download required dependencies to your system, navigate to the directory where the cloned repository resides and execute following command:
58-
- ```python
58+
- ```node
5959
npm install
6060
```
6161
- Now, the project is ready to use.
@@ -73,7 +73,7 @@ Open this file, which is in the main cloned directory, choose any "name" and cha
7373
7474
You will find `src/portfolio.js` file which contains the complete information about the user. The file looks something like below:
7575
76-
```python
76+
```javascript
7777
// Home Page
7878
const greeting = {
7979
...
@@ -91,10 +91,10 @@ You can change the personal information, experience, education, social media, ce
9191
9292
### Github Information
9393
94-
You will find `git_data_fetcher.js` 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.
94+
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.
9595
If you open the file, you will see below component at the top of the file. You need to change only that component.
9696
97-
```python
97+
```javascript
9898
const openSource = {
9999
githubConvertedToken: "Your Github Token Here.",
100100
githubUserName: "Your Github Username Here.",
@@ -106,8 +106,8 @@ Now, you need to run following command.
106106
107107
**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.
108108
109-
```python
110-
node git_data_fetcher.js
109+
```node
110+
node git_data_fetcher.mjs
111111
```
112112
113113
This will fetch all the data from your github and it will automatically replace my data with yours.
@@ -122,7 +122,7 @@ Therefore, this part of portfolio is not customizable. But don't worry we have a
122122
- If you don't want Splash screen or you don't know how to design logo, then this option is for you.
123123

124124
- You can open `src/portfolio.js` file and at the top of this file you will see `settings` component as below:
125-
- ```python
125+
- ```javascript
126126
// Website related settings
127127
const settings = {
128128
isSplash: true,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import fetch from 'node-fetch';
2+
import fs from 'fs';
3+
14
const openSource = {
2-
githubConvertedToken: "Your Github Token Here.",
3-
githubUserName: "Your Github Username Here.",
5+
githubConvertedToken: "Your Github Token Here",
6+
githubUserName: "Your Github Username Here",
47
};
58

6-
const fetch = require("node-fetch");
7-
var fs = require("fs");
8-
99
const query_pr = {
1010
query: `
1111
query {

0 commit comments

Comments
 (0)