Lagom is an open source framework for building microservices in Scala or Java. Built on Akka and Play, it serves as an abstraction layer so you don’t need to have in-depth knowledge of those core technologies to succeed in developing a reactive system of microservices.

In this post we’re introducing a Lagom Starter Kit for IBM Cloud. Cloud Starter Kits set up project resources and build out an architectural pattern around a particular technology. They provide a way for developers to get started coding quickly. This particular starter kit is based on the “Hello World” app on the Lagom Framework open source project site, and uses the Lagom Scala APIs. Running this starter kit will create the project from IBM Cloud and download it to your local system for further development.

Prerequisites

You will need a few things before you get started

  • Java Development Kit (version 8 or higher)
  • sbt, the recommended build tool when using the Lagom Scala APIs (use sbt version 1.x or higher)
  • internet access / proxy set up. If you can only access the internet through a proxy server, be sure to set the HTTP Proxy environment on your system to your proxy’s URL.

Running the Starter Kit

Now you are ready to run the Lagom Scala Starter Kit. It’s just a single step. Clicking “Create” will package up the project code and download it to your local machine. After the download is complete, navigate to the project directory, start sbt and execute the runAll command. Additional details for building and running the project can be found here.

Understanding the Hello World example

The Hello World sample app illustrates a number capabilities of the Lagom framework. You will want to explore these further on the Lagom Framework site.

Join The Discussion

Your email address will not be published. Required fields are marked *