TU-CP18 / cp18-backend

0 stars 1 forks source link

Chat (FM+SD) #45

Closed nschoen closed 5 years ago

nschoen commented 5 years ago

Description: As a Fleet manager I want to be able to contact all security drivers to chat with them. Also I want to see my Chat History and be notified on new incoming messages. Please find out which technology is most suitable (we can probably use something like this: https://code.tutsplus.com/tutorials/build-a-real-time-chat-application-with-modulus-and-spring-boot--cms-22513)

Related Frontend Ticket: https://github.com/TU-CP18/cp18-app/issues/26

Acceptance criteria:

clemenspeters commented 5 years ago

Research and decide on the technology we want to use: Decided to use websockets (with sockjs-client and webstomp-client) to send messages. To store the messages Observable is used. Frontend part with angular-material: https://www.nexmo.com/blog/2018/03/28/build-chat-app-angular-material-stitch-javascript-dr/

clemenspeters commented 5 years ago

TODO: Make sure that the Chat history is stored somewhere.

clemenspeters commented 5 years ago

The Chats are now stored in the CHAT_MESSAGE table. TODO: retrieve history when chat is opened.