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