Hello World service for NONRTRIC - Unit Tests Added
[nonrtric.git] / test / servicestub / README.md
1 # Hello World Service Stub\r
2 \r
3 This repository contains a Spring Boot application serving a Hello World endpoint. The application can be built and \r
4 run using the provided script - ``service-stub-build-start.sh``.\r
5 \r
6 ## Prerequisites\r
7 \r
8 - Docker installed on your machine.\r
9 \r
10 ## Building and Running the Application\r
11 Run the script:\r
12 \r
13 ```bash\r
14   ./service-stub-build-start.sh\r
15 ```\r
16 \r
17 The script will build a Docker image and run a container with the Hello World service. After the container starts, \r
18 wait for a few seconds to ensure the Spring Boot application is fully initialized. Next, it will make an HTTP request to the \r
19 Hello World endpoint and display the response:\r
20 \r
21 ```bash\r
22   response=$(curl -s http://localhost:8080/helloworld/sme)\r
23   echo "Response from the Hello World endpoint:"\r
24   echo "$response"\r
25 ```\r
26 \r
27 To stop and remove the Docker container:\r
28 \r
29 ```bash\r
30   docker stop service-stub-hello-world-test\r
31   docker rm service-stub-hello-world-test\r
32 ```\r
33 \r
34 ## Additional Information\r
35 \r
36 - The Hello World endpoint is available at http://localhost:8080/helloworld/sme.\r
37 \r