Skip to content

Commit f7de6da

Browse files
committed
instructions to create new project for reactive chapter
1 parent 917a0a9 commit f7de6da

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

documentation/modules/ROOT/pages/14_reactive.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
Quarkus provides a novel reactive API called Mutiny, with the goal of easing the development of highly scalable, resilient, and asynchronous systems.
44

55
In this chapter we're going to see some examples of how Mutiny changes the design of our Quarkus applications.
6-
to online beer database (https://punkapi.com/documentation/v2) to retrieve beer information.
6+
We're going to call an online beer database to retrieve beer information.
77
This API does not return all beers at once, so we'll need to navigate through the pages to fetch all the information.
88
Then we're going to filter all the beers with an ABV greater than 15.0 and return all these beers in a Reactive REST endpoint.
99

1010
== Add the Mutiny extension
1111

12-
Create a new Quarkus project, for example using https://code.quarkus.io/ website.
12+
Let's create a new Quarkus project and add the Rest, Rest Client and Mutiny extensions:
1313

14-
Then open a new terminal window, and make sure you’re at the root of your `{project-name}` project, then run:
15-
16-
[tabs]
14+
[tabs%sync]
1715
====
16+
1817
Maven::
1918
+
2019
--
2120
[.console-input]
2221
[source,bash,subs="+macros,+attributes"]
2322
----
24-
./mvnw quarkus:add-extension -Dextension=mutiny,rest-client-jsonb,rest-jsonb
23+
mvn "io.quarkus.platform:quarkus-maven-plugin:create" -DprojectGroupId="com.redhat.developers" -DprojectArtifactId="tutorial-app" -DprojectVersion="1.0-SNAPSHOT" -Dextensions=rest,mutiny,rest-client-jsonb,rest-jsonb
24+
cd {project-name}
2525
----
26-
2726
--
2827
Quarkus CLI::
2928
+
3029
--
3130
[.console-input]
3231
[source,bash,subs="+macros,+attributes"]
3332
----
34-
quarkus extension add mutiny,rest-client-jsonb,rest-jsonb
33+
quarkus create app -x rest -x mutiny -x rest-client-jsonb -x rest-jsonb com.redhat.developers:tutorial-app:1.0-SNAPSHOT
34+
cd {project-name}
3535
----
3636
--
3737
====

0 commit comments

Comments
 (0)