File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 8
8
## Development Setup
9
9
10
10
1 . Clone this repository onto your local machine
11
- 2 . [ Download and Set up Gatsby Environment] ( https://www.gatsbyjs.com/tutorial/part-zero/ ) .
12
- 3 . Open up the project using your preferred code editor
13
- 4 . Install the required node modules for this project.
11
+ 2 . Open up the project using your preferred code editor
12
+ 3 . Install the required node modules for this project.
14
13
```
15
14
npm install
16
15
```
17
- 5. Disable GitHub API access (Used to fetch the list of contributors)
18
- Create a new file in the root called `.env.development` (See [Project Structure](#project-structure) for more information)
19
- Write the following line to it:
20
- ```
21
- NO_GH_API_KEY=true
22
- ```
23
16
4. Start up the Gatsby site
24
17
```
25
- npm start
18
+ NO_GH_API_KEY=true npm start
26
19
```
27
20
5. Open http://localhost:8000 to check the site
28
21
29
- **Obs**: The `NO_GH_API_KEY` environment variable can also be passed through command line. E.g.: `NO_GH_API_KEY=true npm run start`.
30
-
31
22
### Optional - Test the GitHub API integration
32
23
33
24
This step is optional and allows you to test that the list of contributors is being fetched from GitHub.
You can’t perform that action at this time.
0 commit comments