Skip to content

Commit 5f65467

Browse files
committed
Update diagram of app setup
1 parent 852c04a commit 5f65467

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/content/3/en/part3b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Now most of the features in the frontend work! The functionality for changing th
7979

8080
You can read more about CORS from [Mozilla's page](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
8181

82-
The setup of our app looks now as follows:
82+
The setup of our app now looks as follows:
8383

84-
![diagram of react app and browser](../../images/3/100.png)
84+
![diagram of react app and browser](../../images/3/100_25.png)
8585

8686
The react app running in the browser now fetches the data from node/express-server that runs in localhost:3001.
8787

src/content/3/fi/osa3b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ CORS:ista voi lukea tarkemmin esim. [Mozillan sivuilta](https://developer.mozill
6363

6464
Sovelluksen suoritusympäristö näyttää nyt seuraavalta:
6565

66-
![Kuvassa localhost:3000 toimiva React dev server ja localhost:3001 toimiva node backend, jotka molemmat käyttävät lokaalilla levylä olevia fs-tiedostoja. Kuvassa myös selaimessa oleva react-sovellus. joka yhteydessä dev-serveriin (mistä se saa js-tiedoston) sekä node-backendiin jonka reitilt /app/notes sen saa json-muotoisen datan](../../images/3/100.png)
66+
![Kuvassa localhost:5173 toimiva Vite dev server ja localhost:3001 toimiva node backend, jotka molemmat käyttävät lokaalilla levylä olevia fs-tiedostoja. Kuvassa myös selaimessa oleva react-sovellus. joka yhteydessä dev-serveriin (mistä se saa js-tiedoston) sekä node-backendiin jonka reitilt /app/notes sen saa json-muotoisen datan](../../images/3/100_25.png)
6767

6868
Selaimessa toimiva frontendin koodi siis hakee datan osoitteessa localhost:3001 olevalta Express-palvelimelta.
6969

src/content/images/3/100_25.png

48.4 KB
Loading

0 commit comments

Comments
 (0)