Fork me on GitHub

See below the classic Hello World in Pippo using the embedded web server:

public class HelloWorld {

    public static void main(String[] args) {
        Pippo pippo = new Pippo();
        pippo.GET("/", routeContext -> routeContext.send("Hello World!"));
        pippo.start();
    }

}

You can run HelloWorld from your IDE (or command line) as a normal (desktop) application.
The default port for the embedded web server is 8338 so open your internet browser and type http://localhost:8338 to see the result.