hellomicronaut/README.md

41 lines
462 B
Markdown
Raw Normal View History

2023-03-01 11:12:12 +00:00
# Hello Micronaut
2023-03-01 10:56:36 +00:00
2023-03-01 11:12:12 +00:00
Test micronaut web application.
2023-03-01 10:56:36 +00:00
## Container
2023-03-01 10:56:36 +00:00
### Build container
2023-03-01 11:12:12 +00:00
```shell
docker build -t hellomicronaut .
```
2023-03-01 11:12:12 +00:00
### Run container
```shell
2023-03-01 11:12:12 +00:00
docker run --name hello1 -p 8080:8080 hellomicronaut
```
## Development
2023-03-01 11:12:12 +00:00
Requires Java JDK version 11+.
2023-03-01 11:12:12 +00:00
### Build
2023-03-01 11:12:12 +00:00
```shell
./gradlew build
```
### Run
2023-03-01 10:56:36 +00:00
```shell
./gradlew run -t
```
## Test with browser
Connect to the container or localhost on the specified port:
<http://localhost:8080/>