Hello World service for NONRTRIC - Unit Tests Added
[nonrtric.git] / test / servicestub / README.md
diff --git a/test/servicestub/README.md b/test/servicestub/README.md
new file mode 100644 (file)
index 0000000..601e52a
--- /dev/null
@@ -0,0 +1,37 @@
+# Hello World Service Stub\r
+\r
+This repository contains a Spring Boot application serving a Hello World endpoint. The application can be built and \r
+run using the provided script - ``service-stub-build-start.sh``.\r
+\r
+## Prerequisites\r
+\r
+- Docker installed on your machine.\r
+\r
+## Building and Running the Application\r
+Run the script:\r
+\r
+```bash\r
+  ./service-stub-build-start.sh\r
+```\r
+\r
+The script will build a Docker image and run a container with the Hello World service. After the container starts, \r
+wait for a few seconds to ensure the Spring Boot application is fully initialized. Next, it will make an HTTP request to the \r
+Hello World endpoint and display the response:\r
+\r
+```bash\r
+  response=$(curl -s http://localhost:8080/helloworld/sme)\r
+  echo "Response from the Hello World endpoint:"\r
+  echo "$response"\r
+```\r
+\r
+To stop and remove the Docker container:\r
+\r
+```bash\r
+  docker stop service-stub-hello-world-test\r
+  docker rm service-stub-hello-world-test\r
+```\r
+\r
+## Additional Information\r
+\r
+- The Hello World endpoint is available at http://localhost:8080/helloworld/sme.\r
+\r