Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Full Stack Open - Part 0

0.4: New note diagram

Create a diagram depicting the situation where the user creates a new note on the page https://studies.cs.helsinki.fi/exampleapp/notes by writing something into the text field and clicking the Save button.

sequenceDiagram
    participant browser
    participant server

    
    Note right of browser: USER writes in the input form and clicks the save button.

    browser->>server: POST https://studies.cs.helsinki.fi/exampleapp/new_note
    activate server
    server-->>browser: Responds STATUS 302 - GET /exampleapp/notes
    deactivate server
    Note right of browser: SATATUS 302 - Requested resource has been moved temporary to a new location.
    Note right of browser: Browser reloads the notes page causing the HTTP REQUESTS

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/notes
    activate server
    server-->>browser: Responds STATUS 200  - Brings the HTML document to display the structure of the web page
    deactivate server
    Note right of browser : STATUS 200 - The request has been successfull
    
    

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/main.css
    activate server
    server-->>browser: Responds with STATUS 200 - the css file
    deactivate server

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/main.js

    activate server
    server-->>browser: Responds with STATUS 200 - the javascript file
    deactivate server

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/data.json


    activate server
    server-->>browser: Responds with STATUS 200 - JSON file with the notes
    deactivate server
    Note right of browser: Display the list of notes to the USER with the added note
    
    

    
    

    
Loading

0.5: Single page app diagram

Create a diagram depicting the situation where the user goes to the single-page app version of the notes app at https://studies.cs.helsinki.fi/exampleapp/spa.

sequenceDiagram
    participant browser
    participant server

    
    Note right of browser: USER enters the URL https://studies.cs.helsinki.fi/exampleapp/spa
    

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/spa
    activate server
    server-->>browser: Responds STATUS 200  - Brings from the server the html document
    deactivate server
    Note right of browser : STATUS 200 - The request has been successfull
    

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/main.css
    activate server
    server-->>browser: Responds with STATUS 200 - Brings the css file
    deactivate server

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/spa.js

    activate server
    server-->>browser: Responds with STATUS 200 - Brings the javascript file from the server
    deactivate server

    browser->>server: GET https://studies.cs.helsinki.fi/exampleapp/data.json
    activate server
    server-->>browser: Responds with STATUS 200 - Brings the JSON file with the notes
    deactivate server
    Note right of browser: Display the list of notes to the USER with the added note
    
    

    
    
    

    
    

    
Loading

0.6: New note in Single page app diagram

Create a diagram depicting the situation where the user creates a new note using the single-page version of the app.

sequenceDiagram
    participant browser
    participant server

    
    Note right of browser: USER enters the URL https://studies.cs.helsinki.fi/exampleapp/spa
    Note right of browser: USER then fills the input form and clicks the save button

    browser->>server: POST https://studies.cs.helsinki.fi/exampleapp/new_note_spa

    activate server
    server-->>browser: Responds STATUS 201  - {"message":"note created"}
    Note right of browser: STATUS 201 (CREATED) - Request was successfully fulfilled
    deactivate server
    

    
    Note right of browser: Display the list of notes to the USER with the added note

    
    
    

    
    
    

    
Loading

About

This is a repository for the exercises of the Part 0 that belongs to the course of Full Stack Open from the University of Helsinki.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors