|
|
|
```plantuml
|
|
|
|
|
|
|
|
@startuml
|
|
|
|
skinparam{
|
|
|
|
backgroundColor #292929
|
|
|
|
shadowing false
|
|
|
|
defaultFontColor #e4e4e4
|
|
|
|
defaultFontSize 17
|
|
|
|
defaultFontName Arial
|
|
|
|
DatabaseBackgroundColor #00cc92
|
|
|
|
DatabaseBorderColor #292929
|
|
|
|
NoteBackgroundColor #292929
|
|
|
|
NoteBorderColor #00cc92
|
|
|
|
sequence {
|
|
|
|
ArrowColor #00cc92
|
|
|
|
ActorBorderColor #00cc92
|
|
|
|
ActorBackgroundColor #292929
|
|
|
|
LifeLineBorderColor #00cc92
|
|
|
|
LifeLineBackgroundColor #00cc92
|
|
|
|
ParticipantBorderColor #00cc92
|
|
|
|
ParticipantFontColor #e4e4e4
|
|
|
|
ParticipantBackgroundColor #292929
|
|
|
|
BoxBackgroundColor #292929
|
|
|
|
BoxBorderColor #00cc92
|
|
|
|
DividerBackgroundColor #292929
|
|
|
|
DividerBorderColor #00cc92
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
box "Front-end"
|
|
|
|
actor Player
|
|
|
|
actor Gamemaster as GM
|
|
|
|
participant App
|
|
|
|
end box
|
|
|
|
box "Back-end"
|
|
|
|
participant Node
|
|
|
|
database Postgres as DB
|
|
|
|
database Minio
|
|
|
|
end box
|
|
|
|
|
|
|
|
== Player submission ==
|
|
|
|
|
|
|
|
Player-> App : Submit photo
|
|
|
|
App -> Node ++ : AddFile REST
|
|
|
|
Node -> DB : Create/update submission
|
|
|
|
Node -> Minio : Add file
|
|
|
|
Node --> App : //response 200//
|
|
|
|
Node -> GM -- : NewFile socket
|
|
|
|
|
|
|
|
== Gamemaster review ==
|
|
|
|
|
|
|
|
GM -> Node ++ : ApproveFile socket
|
|
|
|
Node -> DB : Update submission
|
|
|
|
Node --> Minio : Delete file (if rejected)
|
|
|
|
Node --> GM : NewFile socket
|
|
|
|
Node --> GM : FinalScoreUpdate socket
|
|
|
|
Node --> Player : FinalScoreUpdate socket
|
|
|
|
Node -> Player -- : FileStatusPlayer socket
|
|
|
|
Note left: Show alert
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |