Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding part 0 exercises #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Exercise 0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa.
server-->browser: HTML-code

end note
23 changes: 23 additions & 0 deletions Exercise 01
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/notes
server-->browser: HTML-code
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.css
server-->browser: main.css
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.js
server-->browser: main.js

note over browser:
browser starts executing js-code
that requests JSON data from server
end note

browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json
server-->browser: [{ content: "HTML is easy", date: "2019-05-23" }, ...]

note over browser:
browser executes the event handler
that renders notes to display
end note




Binary file added Exercise-0.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Exercise-0.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
browser->server: HTTP POST https://studies.cs.helsinki.fi/exampleapp/spa.
server-->browser: HTTP status code 302
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./main.css
server-->browser: main.css
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./main.js
server-->browser: main.js
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./json
server-->browser: main.js
browser->server: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa./data.json
server-->browser: [{...},{...},{...}]
end note
Binary file added exercise-0.5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercise-0.6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.