Skip to content

Commit 3f1e6d4

Browse files
committed
Merge branch 'source' of github.com:fullstack-hy2020/fullstack-hy2020.github.io into source
2 parents f3b1ea3 + 91f5f0c commit 3f1e6d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/2/en/part2c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ Modify the application such that the initial state of the data is fetched from t
598598

599599
The API [https://restcountries.com](https://restcountries.com) provides data for different countries in a machine-readable format, a so-called REST API.
600600

601-
Create an application, in which one can look at data of various countries. The application should probably get the data from the endpoint [all](https://restcountries.com/#api-endpoints-v3-all).
601+
Create an application, in which one can look at data of various countries. The application should probably get the data from the endpoint [all](https://restcountries.com/v3.1/all).
602602

603603
The user interface is very simple. The country to be shown is found by typing a search query into the search field.
604604

@@ -645,9 +645,9 @@ If you use Open weather map, [here](https://openweathermap.org/weather-condition
645645
Assuming the api-key is <i>t0p53cr3t4p1k3yv4lu3</i>, when the application is started like so:
646646

647647
```bash
648-
REACT_APP_API_KEY='t0p53cr3t4p1k3yv4lu3' npm start // For Linux/macOS Bash
649-
($env:REACT_APP_API_KEY='t0p53cr3t4p1k3yv4lu3') -and (npm start) // For Windows PowerShell
650-
set REACT_APP_API_KEY='t0p53cr3t4p1k3yv4lu3' && npm start // For Windows cmd.exe
648+
REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3 npm start // For Linux/macOS Bash
649+
($env:REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3) -and (npm start) // For Windows PowerShell
650+
set REACT_APP_API_KEY=t0p53cr3t4p1k3yv4lu3 && npm start // For Windows cmd.exe
651651
```
652652

653653
you can access the value of the key from the _process.env_ object:

0 commit comments

Comments
 (0)