Synopses & Reviews
Scalatra is a lightweight framework for building web applications and APIs that adhere to the RESTful principles. It has its roots in Ruby's Sinatra. Scalatra allows developers to work close to the core, the HTTP protocol, thus making it good choice when wanting to get maximum performance out of web applications.
Scalatra in Action introduces Scalatra and the Sinatra model. It covers the framework in its entirety, starting with concepts such as request routing, input handling, actions, and HTTP responses. It then proceeds to more advanced topics, such as data access, handling heavy load, asynchronicity, securing applications, designing and documenting RESTful APIs, and realtime web programming.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Synopsis
Summary
Scalatra in Actionintroduces 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.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
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 Actioncovers 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.
Table of Contents
PART 1 INTRODUCTION TO SCALATRA- Introduction
- A taste of Scalatra
- Routing
- Working with user input
PART 2 COMMON DEVELOPMENT TASKS - Handling JSON
- Handling files
- Server-side templating
- Testing
- Configuration, build, and deployment
- Working with a database
PART 3 ADVANCED TOPICS - Authentication
- Asynchronous programming
- Creating a RESTful JSON API with Swagger
About the Author
Ivan Porto Carrero is an enthusiastic polyglot developer. He's a contributor to Akka and Scalatra in his free time and professionally he builds distributed systems. Ivan has also contributed Akka, Atmosphere and authentication support to the core of the Scalatra framework.
Ross A. Baker is a Senior Cloud Engineer at CrowdStrike. He guided the project from its origins as a blog post to the thriving community it is today. Ross is also a Scalate commiter and organizer of the Indy Scala meetup.
Dave Hrycyszyn is technical director at Head London, an innovation agency specializing in agile software design and development. He has led major projects for Microsoft, Qualcomm, and Oxford University Press, among many others. His interests in asynchronous, realtime, and API-driven systems led him to Scalatra.
Stefan Ollinger is a software engineer from Germany. He likes software engineering and developing web applications. He worked at a startup company in the mobile phone business and currently studies computer science at the University of Trier.
Jared Armstrong is an acting partner of OmniSpear, Inc. a consultancy based in Dayton, Ohio. He has experience designing and building custom business software for multiple industries. His involvement contributing to Scalatra includes leading the launch and online documentation.