Hacker News new | ask | show | jobs
by simonw 1350 days ago
I find that hello world example very pleasant to look at. Love that it's effectively a one-liner.

    public static void main(String[] args) {
        var app = Javalin.create(/*config*/)
            .get("/", ctx -> ctx.result("Hello World"))
            .start(7070);
    }
1 comments

Looks very similar to Express.js which came out in 2011 and has been one of the most popular frameworks in the Node.js world.

https://expressjs.com/en/starter/hello-world.html