Add readme
This commit is contained in:
43
README.md
Normal file
43
README.md
Normal 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
|
||||
Reference in New Issue
Block a user