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: src/content/2/en/part2c.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -598,7 +598,7 @@ Modify the application such that the initial state of the data is fetched from t
598
598
599
599
The API [https://restcountries.com](https://restcountries.com) provides data for different countries in a machine-readable format, a so-called REST API.
600
600
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).
602
602
603
603
The user interface is very simple. The country to be shown is found by typing a search query into the search field.
604
604
@@ -645,9 +645,9 @@ If you use Open weather map, [here](https://openweathermap.org/weather-condition
645
645
Assuming the api-key is <i>t0p53cr3t4p1k3yv4lu3</i>, when the application is started like so:
646
646
647
647
```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
651
651
```
652
652
653
653
you can access the value of the key from the _process.env_ object:
0 commit comments