Skip to content

Commit

Permalink
describe client
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jul 4, 2023
1 parent 29213a2 commit 402be2c
Showing 1 changed file with 35 additions and 23 deletions.
58 changes: 35 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,60 +76,72 @@ see `src/app.config.ts`

```mermaid
flowchart TB
subgraph backend [Abstracted Providers]
session(Session) --- user(User)
user --- avatar(Avatar)
user --- relation(Relationship)
subgraph abstracted [Abstract]
user(User) --- relation(Relationship)
user --- score(Score)
score --- beatmap
leaderboard(Leaderboard) --- beatmap(Beatmap)
end
subgraph extendable [Extendable]
status(Status)
article(Article)
log(Log)
session(Session)
end
subgraph providers [Providers]
extendable
abstracted
end
subgraph impl [Implementations]
ppy.sb(ppy.sb) === |extends| bancho.py
bancho.py(Bancho.py) === |implements, extends| $base
$base([Base])
end
subgraph resource [Resources]
mysql[(MySQL)]
gulag[/Bancho.py Server/]
redis[(Redis)]
file[(File)]
memory[/Memory/]
end
subgraph client [Client]
client-session(Client Session)
trpc-client(TRPC Client)
env
end
subgraph server [Server]
backend
trpc-server(TRPC Server)
providers
impl
bancho.py(Bancho.py) === |implements, extends| $base([Base])
end
subgraph pages [Pages]
page-user(/user/:id)
pages-other(/...)
end
subgraph client [Client]
search(Search)
trpc-client(TRPC Client)
pages --- trpc-client
pages --- client-session
search --- trpc-client
client-session(Client Session) --- trpc-client
end
A[Gamer] ---> |Browser| client[/Guccho client/]
A[Gamer] --> |Browser| pages
trpc-client ===> |superjson| backend
backend ===> |devalue| trpc-client
trpc-client --> |superjson| trpc-server --> |devalue| trpc-client
trpc-server === providers
session ----- $base
log ----- $base
status ----- $base
backend ====== |$active| impl
session --- user
extendable ===== |$def| $base
abstracted ===== |$active| impl
ppy.sb --- |additional tables| mysql
bancho.py --- |api v1| gulag
bancho.py --- |"gulag api(v1)"| gulag
bancho.py --- |leaderboard| redis
bancho.py --- mysql
$base --- |session| redis
$base --- |runtime, session| memory
$base --- |log| file
$base --- |reads| env
```

## The team (Guccho)
Expand Down

0 comments on commit 402be2c

Please sign in to comment.