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();
    }

}

Sure, the number of lines can decrease considerable if you use variant:

public class HelloWorld {

    public static void main(String[] args) {
        Pippo.send("Hello World!");
    }

}

if you consider that in first variant they are too many lines of code.

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.