|
1 |
| -# arangodb-sample |
| 1 | += arangodb-sample |
2 | 2 |
|
3 | 3 | This project uses Quarkus, the Supersonic Subatomic Java Framework.
|
4 | 4 |
|
5 |
| -If you want to learn more about Quarkus, please visit its website: <https://quarkus.io/>. |
| 5 | +If you want to learn more about Quarkus, please visit its website: https://quarkus.io/. |
6 | 6 |
|
7 |
| -## Running the application in dev mode |
| 7 | +== Running the application in dev mode |
8 | 8 |
|
9 | 9 | You can run your application in dev mode that enables live coding using:
|
10 | 10 |
|
11 |
| -```shell script |
| 11 | +[source,shell] |
| 12 | +---- |
12 | 13 | ./mvnw compile quarkus:dev
|
13 |
| -``` |
| 14 | +---- |
14 | 15 |
|
15 |
| -> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at <http://localhost:8080/q/dev/>. |
| 16 | +[NOTE] |
| 17 | +==== |
| 18 | +Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/. |
| 19 | +==== |
16 | 20 |
|
17 |
| -## Packaging and running the application |
| 21 | +== Packaging and running the application |
18 | 22 |
|
19 | 23 | The application can be packaged using:
|
20 | 24 |
|
21 |
| -```shell script |
| 25 | +[source,shell] |
| 26 | +---- |
22 | 27 | ./mvnw package
|
23 |
| -``` |
| 28 | +---- |
24 | 29 |
|
25 | 30 | It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
|
26 | 31 | Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
|
27 | 32 |
|
28 |
| -The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`. |
| 33 | +The application is now runnable using: |
| 34 | + |
| 35 | +[source,shell] |
| 36 | +---- |
| 37 | +java -jar target/quarkus-app/quarkus-run.jar |
| 38 | +---- |
29 | 39 |
|
30 | 40 | If you want to build an _über-jar_, execute the following command:
|
31 | 41 |
|
32 |
| -```shell script |
| 42 | +[source,shell] |
| 43 | +---- |
33 | 44 | ./mvnw package -Dquarkus.package.jar.type=uber-jar
|
34 |
| -``` |
| 45 | +---- |
| 46 | + |
| 47 | +The application, packaged as an _über-jar_, is now runnable using: |
35 | 48 |
|
36 |
| -The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`. |
| 49 | +[source,shell] |
| 50 | +---- |
| 51 | +java -jar target/*-runner.jar |
| 52 | +---- |
37 | 53 |
|
38 |
| -## Creating a native executable |
| 54 | +== Creating a native executable |
39 | 55 |
|
40 | 56 | You can create a native executable using:
|
41 | 57 |
|
42 |
| -```shell script |
| 58 | +[source,shell] |
| 59 | +---- |
43 | 60 | ./mvnw package -Dnative
|
44 |
| -``` |
| 61 | +---- |
45 | 62 |
|
46 | 63 | Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
|
47 | 64 |
|
48 |
| -```shell script |
| 65 | +[source,shell] |
| 66 | +---- |
49 | 67 | ./mvnw package -Dnative -Dquarkus.native.container-build=true
|
50 |
| -``` |
| 68 | +---- |
| 69 | + |
| 70 | +You can then execute your native executable with: |
51 | 71 |
|
52 |
| -You can then execute your native executable with: `./target/arangodb-sample-1.0.0-SNAPSHOT-runner` |
| 72 | +[source,shell] |
| 73 | +---- |
| 74 | +./target/arangodb-sample-1.0.0-SNAPSHOT-runner |
| 75 | +---- |
53 | 76 |
|
54 |
| -If you want to learn more about building native executables, please consult <https://quarkus.io/guides/maven-tooling>. |
| 77 | +If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling. |
55 | 78 |
|
56 |
| -## Related Guides |
| 79 | +== Related Guides |
57 | 80 |
|
58 |
| -- REST ([guide](https://quarkus.io/guides/rest)): A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it. |
| 81 | +* REST (https://quarkus.io/guides/rest): A Jakarta REST implementation utilizing build time processing and Vert.x. |
| 82 | +This extension is not compatible with the `quarkus-resteasy` extension, or any of the extensions that depend on it. |
59 | 83 |
|
60 |
| -## Provided Code |
| 84 | +== Provided Code |
61 | 85 |
|
62 |
| -### REST |
| 86 | +=== REST |
63 | 87 |
|
64 |
| -Easily start your REST Web Services |
| 88 | +Easily start your REST Web Services. |
65 | 89 |
|
66 | 90 | [Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
|
0 commit comments