hellomicronaut/README.md

43 lines
701 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-02 06:20:11 +00:00
Test "hello world" web application (written in the micronaut framework) that displays some information about the architecture it runs on, and allow users to enter some data, that will not persist or be shared across multiple instances.
![screenshot](doc/screenshot.png)
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/>