- Download and install Java JDK https://www.oracle.com/br/java/technologies/downloads/
- Download and install Maven https://maven.apache.org/download.cgi
- Download and install PostgreSQL https://www.postgresql.org/download
- (optional) Download and install IntelliJ Community (free) https://www.jetbrains.com/pt-br/idea/download/other.html
mvn io.quarkus.platform:quarkus-maven-plugin:3.15.1:create -DprojectGroupId=io.github.felipedemacedo -DprojectArtifactId=sorveteria-quarkus-api
If using Powershell, wrap -D parameters in double quotes e.g. "-DprojectArtifactId=my-artifactId"
- hibernate-validator
- jdbc-h2
- hibernate-orm
- hibernate-orm-panache
- resteasy-jsonb
with the following command on CMD:
./mvnw quarkus:add-extension -Dextensions="hibernate-validator,jdbc-h2,hibernate-orm,hibernate-orm-panache,resteasy-jsonb"
Alternatively you can add these lines into pom.xml:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jdbc-h2</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-orm</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-orm-panache</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-metrics</artifactId>
</dependency>
./mvnw compile quarkus:dev
The result should be something like this:
More info here: Using Quarkus with Maven https://quarkus.io/guides/maven-tooling
Test Case 1 | Test Case 2 | Test Case 3 |
---|---|---|
6.1. You may download and install it from: https://prometheus.io/download/
scrape_configs:
- job_name: "prometheus"
metrics_path: '/q/metrics'
static_configs:
- targets: ["localhost:8080"]
7.1. Download it from https://grafana.com/
https://kubernetes.io/releases/download/#binaries
https://minikube.sigs.k8s.io/docs/start/?arch=%2Fwindows%2Fx86-64%2Fstable%2F.exe+download
minikube start
In case of error, run:
minikube delete
minikube start
Verify status with:
minikube status