Add readme

This commit is contained in:
2024-09-06 10:08:06 +02:00
parent bc9b8a6116
commit 816a39fe0a

43
README.md Normal file
View File

@@ -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 <repository-url>
cd <repository-directory>
```
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