Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.08 KB

Server for ConfettiApp

In ConfettiApp people can create spontaneous events and send hearty invitations to their friends.
The server handles requests from the confetti_client.

Technologies / Frameworks / Modules

deno run --allow-net './index.ts'  # run deno

Process login request

sequenceDiagram

Client ->> Router: {username, password}
Router ->> Controller: checkCredentials()
activate Controller
Controller ->> Model: User.where()
note right of Model: denodb lookup
Model -->> Controller: return User
Controller -->> Router: return boolean
deactivate Controller

alt checkCredentials() == true
Router ->> Controller: createCookie()
Controller -->> Router: return token
Router -->> Client: Status.OK, token
else checkCredentials() == false
Router -->> Client: Status.Unauthorized
end

Loading