95822a717280ade0674c9afe576ba8c65d663b24
[nonrtric.git] / sample-services / hello-world-sme-invoker / README.md
1 # Hello World Sme Invoker Service\r
2 \r
3 This repository contains a Spring Boot application serving few Hello World SME endpoints. \r
4 The application can be built and run using the provided script - ``hello-world-sme-invoker-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   ./hello-world-sme-invoker-build-start.sh\r
15 ```\r
16 \r
17 The script will build a Docker image and run a container with the Hello World SME 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 SME endpoint and display the response:\r
20 \r
21 ```bash\r
22   response=$(curl -s http://localhost:8080/helloworld/v1/sme)\r
23   echo "Response from the Hello World SME 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 hello-world-sme-invoker\r
31   docker rm hello-world-sme-invoker\r
32 ```\r
33 \r
34 ## Additional Information\r
35 \r
36 - The Hello World SME endpoint is available at http://localhost:8080/helloworld/v1/sme.\r
37 \r