/SWE-ClinicSystem

Client-Server Clinic System - SW Engineering Project (2022)

Primary LanguageJava

OCSF Mediator Example

Structure

Pay attention to the three modules:

  1. client - a simple client built using JavaFX and OCSF. We use EventBus (which implements the mediator pattern) in order to pass events between classes (in this case: between SimpleClient and PrimaryController.
  2. server - a simple server built using OCSF.
  3. entities - a shared module where all the entities of the project live.

Running

  1. Run Maven install in the parent project.
  2. Run the server using the exec:java goal in the server module.
  3. Run the client using the javafx:run goal in the client module.
  4. Press the button and see what happens!