Skip to content

erlangen-dev/coffee-caller

Repository files navigation

coffee-caller

Architecture

    C4Context
      title System Context diagram for CoffeeCaller
      Boundary(b0, "CoffeeCaller") {
        System(CoffeeCallerBackend, "Backend")
        System(CoffeeCallerWebFrontend, "Web Frontend")
        System(CoffeeCallerDesktopFrontend, "Desktop Frontend")
        System(CoffeeCallerMobileFrontend, "Mobile Frontend")
      }
      BiRel(CoffeeCallerBackend, CoffeeCallerWebFrontend, "Connects")
      BiRel(CoffeeCallerBackend, CoffeeCallerDesktopFrontend, "Connects")
      BiRel(CoffeeCallerBackend, CoffeeCallerMobileFrontend, "Connects")
      UpdateElementStyle(CoffeeCallerBackend, $fontColor="red", $bgColor="grey", $borderColor="red")
      UpdateLayoutConfig($c4ShapeInRow="2", $c4BoundaryInRow="1")
Loading

Communication works as follows:

sequenceDiagram
    actor Bob
    actor Alice
    participant Backend

    Bob->>Backend: {"name": "Bob", "type": "join"}
    Backend->>Alice: {"status": "announced", "participants": ["Bob"], "messages": [{"name": "Bob", "type": "join"}]}
    Backend->>Bob: {"status": "announced", "participants": ["Bob"], "messages": [{"name": "Bob", "type": "join"}]}
    Alice->>Backend: {"name": "Alice", "type": "join"}
    Backend->>Bob: {"status": "announced", "participants": ["Bob", "Alice"], "messages": [{"name": "Bob", "type": "join"}, {"name": "Alice", "type": "join"}]}
    Backend->>Alice: {"status": "announced", "participants": ["Bob", "Alice"], "messages": [{"name": "Bob", "type": "join"}, {"name": "Alice", "type": "join"}]}
    Alice->>Backend: {"name": "Alice", "type": "start"}
    Backend->>Bob: {"status": "inProgress", "participants": ["Bob", "Alice"], "messages": [...]}
    Backend->>Alice: {"status": "inProgress", "participants": ["Bob", "Alice"], "messages": [...]}
Loading

Backend setup

With node

  • Install node
  • Run npm install --global yarn to install yarn
  • Run yarn to install all dependencies
  • Run yarn serve to start backend in watch mode
  • Run yarn start to start backend

With docker

Frontend setup

Mobile-UI

  • Install fvm
  • Run fvm flutter run to start the app
  • ???
  • Profit!

Rust

  • Install rust/cargo
  • Run cargo run in the frontend-desktop folder to start the app
  • ???
  • Profit!

Happy coding :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •