Scalatra in Action

  • 3h 28m
  • Dave Hrycyszyn, Ross A. Baker, Stefan Ollinger
  • Manning Publications
  • 2016

Summary

Scalatra in Action introduces the Scalatra framework and the Sinatra model. It covers the framework in its entirety, starting with concepts like request routing, input handling, actions, and HTTP responses, then proceeds to more advanced topics, such as data access, handling heavy load, asynchronicity, securing applications, designing and documenting RESTful APIs, and real-time web programming.

About the Technology

Scalatra is a lightweight Scala web framework similar to the popular Ruby-based Sinatra. It’s perfect for running real-time applications on multicore servers, and is a fast way to spin up web apps and build HTTP APIs for mobile, Backbone.js, and AngularJS apps.

About the Book

Scalatra in Action covers the Scalatra framework in its entirety, starting with concepts such as request routing, input handling, actions, and HTTP responses. For readers who don’t already know Scala, the book introduces the Scala language and sbt, the Simple Build Tool. You’ll learn how to use Scalatra’s powerful templating engine, Scalate. It also covers advanced topics such as data access, handling heavy load, asynchronicity, securing your application, designing RESTful APIs, and real-time web programming.

What's Inside

  • Make clean templates using Scalate
  • Integrate with libraries that supplement Scalatra
  • Write tests using Specs2
  • Integrate Scalatra with databases

About the Reader

Readers should be familiar with the basics of HTTP, REST, and web applications. No experience with Scalatra, Sinatra, or Scala is required.

About the Authors

Dave Hrycyszyn is technical director for a London-based agency specializing in agile software design and development. Stefan Ollinger is an active Scalatra contributor. Ross A. Baker is a Senior Cloud Engineer, a Scalate commiter, and organizer of the Indy Scala meetup.

In this Book

  • About This Book
  • About the Cover Illustration
  • Introduction
  • A Taste of Scalatra
  • Routing
  • Working with User Input
  • Handling JSON
  • Handling Files
  • Server-Side Templating
  • Testing
  • Configuration, Build, and Deployment
  • Working with a Database
  • Authentication
  • Asynchronous Programming
  • Creating a RESTful JSON API with Swagger
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.7 of 117 users Rating 4.7 of 117 users (117)
Rating 4.5 of 194 users Rating 4.5 of 194 users (194)
Rating 4.4 of 58 users Rating 4.4 of 58 users (58)