DEV Community

Said Olano
Said Olano

Posted on

First Quarkus app

This is the first Quarkus app:

Image description

You can download the code from here:
https://github.com/josesaid/code-with-quarkus

Getting started

Open your IDE and code this snippet

package org.acme;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

@Path("/first_app")
public class GreetingResource {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    @Path("/hello")
    public String hello() {
        return "Hello from RESTEasy Reactive by Said Olano";
    }
}

Enter fullscreen mode Exit fullscreen mode

Then run this maven command:

Image description

Here is the command:

./mvnw quarkus:dev
Enter fullscreen mode Exit fullscreen mode

This is the result of the execution:

Image description

Top comments (0)