Professional Documents
Culture Documents
Online Medical Platform Project Assignment 2
Online Medical Platform Project Assignment 2
-Assignment 2-
The backend app has a new Receiver class that processes the messages sent over by the
producer via rabbitmq. It receives the messages and processes the data received to see if any suspicious
activity is detected. If it is, a new object will be created and stored in the database. Besides that, the
message will be sent to the front end by using web sockets. Marked with green arrows below
On the backend, the websockets part requires a configuration and a message dispatcher. the
configuration sets up the endpoint so the messages can be sent over to the frontend. The message
dispatcher sets the client id with the destination prefixes such that only the caregiver whose patient has a
suspicious activity will receive the message. Marked with orange in the image below.
On the frontend, a connection with StockJS and Stomp was established, and an alert is
displayed when a suspicious activity is detected.
2. Build and execution considerations
To access the project on the cloud:
Frontend: https://lifeline-medapp.herokuapp.com/
Backend: https://lifeline-medapp-backend.herokuapp.com/
Doctor:
Username: tabita
Password: Password1
Caregiver:
Username: amysteele
Password: Password1
Patient:
Username: leosullivan
Password: Password1
The alert shown when an activity takes longer than expected is the following: