Skip to content

Instantly share code, notes, and snippets.

@marcellodesales
Created March 9, 2023 13:59
Show Gist options
  • Save marcellodesales/3eee0af42de6c08b9652470ad4230d1e to your computer and use it in GitHub Desktop.
Save marcellodesales/3eee0af42de6c08b9652470ad4230d1e to your computer and use it in GitHub Desktop.
PUML for minitwit
@startuml
skin rose
title Minitwit - Components
package viasat.platform.cloud <<Frame>> {
class ConfigService
class HostService
ConfigService --> HostService
}
package flask <<Frame>> {
class Blueprint
class Flask
}
package viasat.platform.core <<Frame>> {
class HttpResponseDecorator
object auth << FlaskAuth >>
}
package viasat.platform.observability <<Frame>> {
annotation HealthcheckRoutes << flask.Blueprint >>
annotation AdminRoutes << flask.Blueprint >>
flask.Blueprint <|-down- HealthcheckRoutes: Is a
flask.Blueprint <|-down- AdminRoutes: Is a
AdminRoutes --> viasat.platform.cloud.HostService
HealthcheckRoutes --> viasat.platform.cloud.HostService
AdminRoutes --> viasat.platform.core.auth
}
package minitwit <<Folder>> {
object app
app -down-|> flask.Flask: Is a
app "1" *-up- viasat.platform.observability.AdminRoutes
app "1" *-up- viasat.platform.observability.HealthcheckRoutes
app --> viasat.platform.core.HttpResponseDecorator
app --> viasat.platform.cloud.ConfigService
app --> viasat.platform.cloud.HostService
}
package Database <<Database>> {
class db <<sqlalchemy>>
minitwit.app "1" *-up- db
}
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment