commit | author | age
|
d1a063
|
1 |
# czech microservice |
RS |
2 |
|
|
3 |
This is a simple microservice that greets the user in Czech. |
|
4 |
|
|
5 |
This project uses `Quarkus`, the Supersonic Subatomic Java Framework. |
|
6 |
|
|
7 |
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ . |
|
8 |
|
|
9 |
## Running the application in dev mode |
|
10 |
|
|
11 |
You can run your application in dev mode that enables live coding using: |
|
12 |
``` |
|
13 |
./mvnw quarkus:dev |
|
14 |
``` |
|
15 |
|
|
16 |
## Packaging and running the application |
|
17 |
|
|
18 |
The application is packageable using `./mvnw package`. |
|
19 |
It produces the executable `czech-1.0.0-runner.jar` file in `/target` directory. |
|
20 |
|
|
21 |
The application is now runnable using `java -jar target/czech-1.0.0-runner.jar`. |
|
22 |
|
|
23 |
## Creating a native executable |
|
24 |
|
|
25 |
You can create a native executable using: `./mvnw package -Pnative`. |
|
26 |
|
|
27 |
Or you can use Docker to build the native executable using: `./mvnw package -Pnative -Dquarkus.native.container-build=true`. |
|
28 |
|
|
29 |
You can then execute your binary: `./target/czech-1.0.0-runner` |
|
30 |
|
|
31 |
If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide . |