Skip to content

Latest commit

 

History

History
executable file
·
51 lines (41 loc) · 1.16 KB

README.md

File metadata and controls

executable file
·
51 lines (41 loc) · 1.16 KB

WEBSERVER

Setup

  1. clone the source code into the machine: $ git clone https://github.com/jamestansx/webserver.git && cd webserver

  2. create a virtual environment: $ virtualenv venv

  3. activate the virtual env:% $ ./venv/Scripts/activate

  4. install all the dependencies: $ pip install -r requirements.txt

  5. start the server: $ waitress-server webserver:app

Sequence Diagram of webserver

sequenceDiagram
  actor C as Client
  participant Web as Web Server
  participant Auth as Authorization Server
  participant S as Script Server
  participant Data as Database

  par Authentication Process
    C->>+Web: HTTP Request
    activate C
    Web->>Web: Start Authorization Process
    Web-->>-C: Redirect to Authorization Server
    C->>+Auth: Authenticate and Approve of Release of Token
    Auth-->>-C: Send Token
  end
  C->>+Web: HTTP Request with Token
  note left of Web: HTTP Methods
  Web->>+S: REST Request to retrieve or modidy data
  S->>+Data: SQL command
  Data->>-S: Return Result
  S->>-Web: REST Response
    
  alt Page Request
    Web->>C: Static Page Response
  else HTTP Request
    Web->>-C: HTTP Response
  end
  deactivate C
Loading