Skip to content

cschlusche/confetti_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published