From 816a39fe0ac5d7e8533eef4760b4c64812357b93 Mon Sep 17 00:00:00 2001 From: Jakub Knetl Date: Fri, 6 Sep 2024 10:08:06 +0200 Subject: [PATCH] Add readme --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b3f2e45 --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# Hello World Spring Boot Application + +This is a simple Spring Boot application that exposes a REST endpoint. + +## Prerequisites + +- JDK 21 +- Docker +- Gradle + +## Build Instructions + +1. Clone the repository: + ```sh + git clone + cd + ``` + +2. Build the application using Gradle: + ```sh + ./gradlew build + ``` + +3. Build the Docker image: + ```sh + docker build -t hello-world-spring-boot . + ``` + +## Running the Application + +1. Run the Docker container: + ```sh + docker run -p 8080:8080 hello-world-spring-boot + ``` + +2. The application will be available at `http://localhost:8080`. + +## Making a Request + +To test the application, you can make a GET request to the `/hello` endpoint: + +```sh +curl http://localhost:8080/hello \ No newline at end of file