Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 862 Bytes

solution.md

File metadata and controls

22 lines (18 loc) · 862 Bytes

#How to deploy the system

First, the server must be compiled and running. To do it, we have to execute the following commands:

   ./gradlew :server:build
   ./gradlew :server:bootRun

Next, the client must be compiled and running in the same way as we have done with the server:

   ./gradlew :client:build
   ./gradlew :client:bootRun

If we look at the code available from the repository, it can be seen that in the "TranslatorEndpoint" class there is a function called "translation" that is not implemented ("TODO()"). Therefore, it must be implemented in order to work properly. In this case, we have used the "apply" method of the "TranslationResponse" class.

   fun translation(@RequestPayload request: TranslationRequest): TranslationResponse = 
   TranslationResponse().apply{
   	translation = "Translate me!"
   }