Scalatra-Scalate 1. Intro

Robert Crowther Apr 2022
Last Modified: Oct 2022

Next

A guide to getting these two running. They build a server, with Sinatra‐style routing to code. You won’t build a visual ‘website’ using this, but you will have a tool that can deliver JSON or anything else you can think of to the web. Via the cutest code you ever saw. Oh, and if your boss asks, this setup is… performant?

image of scalatra-scalate-cover
The art of doing little, well

Upfront: I reach conclusions. If you are an outsider to Java culture, this will get ugly—to find information on what you are looking for is a headache‐generator. If you want to use the build‐tool SBT for anything other than adding some libraries, I suggest you bail now. I abandoned use of Scalate, not because I dislike the software, it’s very good, but couldn’t get on with it’s adjustments to Java culture. But there is good here, some mighty good. Scalatra can change the way you think about the web and, come to that, computer code. As for the Jetty deployment, bet you never thought you could do that by asking… you never can usually. So, are you up for this? Part Two awaits.