This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
fullstack-open/part0/0.5.md
2023-03-13 14:34:36 +02:00

33 lines
973 B
Markdown

# Exercise 0.5
```mermaid
sequenceDiagram
participant browser
participant server
browser->>server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa
activate server
server-->>browser: HTML-code
deactivate server
browser->>server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.css
activate server
server-->>browser: main.css
deactivate server
browser->>server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa.js
activate server
server-->>browser: spa.js
deactivate server
Note right of browser: The browser starts executing the JavaScript code that fetches the JSON from the server
browser->>server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json
activate server
server-->>browser: [{"content":"","date":"2023-03-13T01:16:01.627Z"}, ... ]
deactivate server
Note right of browser: The browser executes the callback function that renders the notes
```