Project setup

It goes without saying that we'll implement our microservices using the Lagom framework. Lagom supports both Maven and SBT as build tools but SBT provides a much better user experience so we will ignore Maven as it is less relevant for Scala projects. 

Further, in this section we're going to create a Lagom project from scratch. We could utilize a slightly different approach by creating an example project with Giter8 and then modifying and extending it as needed. The command is similar to the one we mentioned in Chapter 11An Introduction to the Akka and Actor Modelssbt new lagom/lagom-scala.g8.

As before, our SBT setup will contain a number of files describing different aspects of the project. For the following, assume we've ...

Get Learn Scala Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.