|
1 |
| -# code-with-quarkus |
| 1 | +# Quarkus example |
2 | 2 |
|
3 |
| -This project uses Quarkus, the Supersonic Subatomic Java Framework. |
| 3 | +Dit project gebruikt Quarkus: <https://quarkus.io/>, een Java framework waarmee onder andere API's kunnen worden gebruikt. |
4 | 4 |
|
5 |
| -If you want to learn more about Quarkus, please visit its website: <https://quarkus.io/>. |
6 |
| - |
7 |
| -## Running the application in dev mode |
8 |
| - |
9 |
| -You can run your application in dev mode that enables live coding using: |
10 |
| - |
11 |
| -```shell script |
12 |
| -./mvnw quarkus:dev |
13 |
| -``` |
14 |
| - |
15 |
| -> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at <http://localhost:8080/q/dev/>. |
16 |
| -
|
17 |
| -## Packaging and running the application |
18 |
| - |
19 |
| -The application can be packaged using: |
| 5 | +Om het project te bouwen en een `openapi.json` te genereren, run het volgende: |
20 | 6 |
|
21 | 7 | ```shell script
|
22 | 8 | ./mvnw package
|
23 | 9 | ```
|
24 | 10 |
|
25 |
| -It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory. |
26 |
| -Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory. |
27 |
| - |
28 |
| -The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`. |
29 |
| - |
30 |
| -If you want to build an _über-jar_, execute the following command: |
31 |
| - |
32 |
| -```shell script |
33 |
| -./mvnw package -Dquarkus.package.jar.type=uber-jar |
34 |
| -``` |
35 |
| - |
36 |
| -The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`. |
37 |
| - |
38 |
| -## Creating a native executable |
39 |
| - |
40 |
| -You can create a native executable using: |
41 |
| - |
42 |
| -```shell script |
43 |
| -./mvnw package -Dnative |
44 |
| -``` |
45 |
| - |
46 |
| -Or, if you don't have GraalVM installed, you can run the native executable build in a container using: |
47 |
| - |
48 |
| -```shell script |
49 |
| -./mvnw package -Dnative -Dquarkus.native.container-build=true |
50 |
| -``` |
51 |
| - |
52 |
| -You can then execute your native executable with: `./target/code-with-quarkus-1.0.0-SNAPSHOT-runner` |
53 |
| - |
54 |
| -If you want to learn more about building native executables, please consult <https://quarkus.io/guides/maven-tooling>. |
55 |
| - |
56 |
| -## Provided Code |
57 |
| - |
58 |
| -### REST |
59 |
| - |
60 |
| -Easily start your REST Web Services |
| 11 | +Dit genereert `target/generated/openapi/openapi.json` op basis van de classes in [`src/main/java/org/acme/`](src/main/java/org/acme/). |
| 12 | +Daar kun je de verscheidene annotations bekijken die gebruikt worden om API's te documenteren. |
| 13 | +Tevens is er enkele configuratie vereist in [`src/main/resources/application.properties`](src/main/resources/application.properties) om Quarkus goed in te stellen. |
61 | 14 |
|
62 |
| -[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources) |
| 15 | +Met deze annotations en configuratie voldoet het example aan alle regels van de API Design Rules. |
0 commit comments