{"id":18814599,"url":"https://github.com/fullstack-hy2020/misc","last_synced_at":"2025-04-04T07:08:35.055Z","repository":{"id":41567187,"uuid":"236173164","full_name":"fullstack-hy2020/misc","owner":"fullstack-hy2020","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-24T17:05:33.000Z","size":209,"stargazers_count":47,"open_issues_count":4,"forks_count":146,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T06:09:32.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fullstack-hy2020.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-25T13:23:23.000Z","updated_at":"2025-03-24T17:05:36.000Z","dependencies_parsed_at":"2023-12-02T23:22:25.473Z","dependency_job_id":"e2098c27-cf8e-4f22-bcaa-801b2c77e069","html_url":"https://github.com/fullstack-hy2020/misc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-hy2020%2Fmisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-hy2020%2Fmisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-hy2020%2Fmisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-hy2020%2Fmisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullstack-hy2020","download_url":"https://codeload.github.com/fullstack-hy2020/misc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:42:03.548Z","updated_at":"2025-04-04T07:08:35.003Z","avatar_url":"https://github.com/fullstack-hy2020.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diagrams\n\n## part0b, 1st diagram\n\n```mermaid\nsequenceDiagram\n    participant browser\n    participant server\n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/\n    activate server\n    server--\u003e\u003ebrowser: HTML document\n    deactivate server\n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/kuva.png\n    activate server\n    server--\u003e\u003ebrowser: the png pic\n    deactivate server\n    Note right of browser: Page with a pic will is rendered\n```\n\n## part0b, 2nd diagram\n\n```mermaid\nsequenceDiagram\n    participant browser\n    participant server\n    \n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/notes\n    activate server\n    server--\u003e\u003ebrowser: HTML document\n    deactivate server\n    \n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/main.css\n    activate server\n    server--\u003e\u003ebrowser: the css file\n    deactivate server\n    \n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/main.js\n    activate server\n    server--\u003e\u003ebrowser: the JavaScript file\n    deactivate server\n    \n    Note right of browser: The browser starts executing the JavaScript code that fetches the JSON from the server\n    \n    browser-\u003e\u003eserver: GET https://studies.cs.helsinki.fi/exampleapp/data.json\n    activate server\n    server--\u003e\u003ebrowser: [{ \"content\": \"HTML is easy\", \"date\": \"2023-1-1\" }, ... ]\n    deactivate server    \n\n    Note right of browser: The browser executes the callback function that renders the notes \n```\n\n## part4d, diagram\n\n```mermaid\nsequenceDiagram\n    participant user\n    participant browser\n    participant backend\n    \n    Note left of user: User fills in login form with username and password\n    user-\u003e\u003ebrowser: login button pressed\n    \n    activate backend\n    browser-\u003e\u003ebackend: HTTP POST /api/login { username, password }\n    \n    Note left of backend: backend generates a TOKEN that identifies the user\n    backend--\u003e\u003ebrowser: TOKEN returned as message body\n    deactivate backend\n    \n    Note left of browser: browser saves the TOKEN\n    \n    Note left of user: User creates a note \n    user -\u003e\u003e browser: create note button pressed\n    \n    activate backend\n    browser -\u003e\u003e backend: HTTP POST /api/notes { content } TOKEN in header\n    Note left of backend: backend identifies the user from the TOKEN\n\n    backend --\u003e\u003e browser: 201 created\n    deactivate backend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-hy2020%2Fmisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullstack-hy2020%2Fmisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-hy2020%2Fmisc/lists"}