|Scalatra in Action
Ivan Porto Carrero, Ross A. Baker, Dave Hrycyszyn, Stefan Ollinger, and Jared Armstrong
MEAP Began: January 2013
Softbound print: March 2014 (est.) | 325 pages
|Order today and start reading Scalatra in Action today through MEAP|
|MEAP + Ebook only - $35.99|
|MEAP + Print book (includes Ebook) when available - $44.99|
|* For more information, please see the MEAP FAQs page.|
|About MEAP Release Date Estimates|
Table of Contents, MEAP Chapters & Resources
|Table of Contents||Resources||Related Titles|
1. Introduction to Scalatra - FREE
2. A taste of Scalatra - AVAILABLE
3. Routing - AVAILABLE
4. Working with user input - AVAILABLE
5. Handling data - AVAILABLE
6. Server-side templating
8. Adding model to view-controller
10. Asynchronous and realtime Scalatra
11. Creating a RESTful JSON API with Swagger - AVAILABLE
12. Application Structure, configuration and deployment - AVAILABLE
A. Installing Scalatra
Scalatra is a lightweight Scala-driven web framework similar to the popular Ruby-based Sinatra. It's perfect for writing high-performance stateless applications and RESTful APIs. Scalatra is a simple HTTP DSL that allows you to start with a tiny amount of code and then add the exact libraries you want as your application grows. As a result, it's an amazingly-fast way to spin up a Scala-based web app, without the overhead of Lift or Play, and to build an HTTP API for a mobile, Backbone.js, or AngularJS app. Since it uses Scala and the functional programming model, it's also perfect for running realtime applications on multi-core servers.
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 your application, designing and documenting RESTful APIs, and realtime web programming.
For readers who don't already know Scala, the book introduces the basic tools in any successful Scala developer's toolbox: the Scala language and SBT, and the Simple Build Tool. The book also shows you how to test and deploy your Scalatra applications.
- Everything you need to use the Scalatra web framework
- Design powerful web applications and RESTful APIs with easy and readable code
- Integrate with libraries that supplement Scalatra
- Make clean templates using Scalate
- Write tests using specs2
- Integrate Scalatra with relational and NoSQL databases
Readers should be familiar with the basics of HTTP, REST and web applications. No prior experience with Scalatra, Sinatra, or Scala is required.
About the Authors
Ivan Porto Carrero is a distributed systems engineer and has contributed Akka, Atmosphere and authentication support to the core of the Scalatra framework. Ross A. Baker is a Senior Cloud Engineer, a Scalate commiter, and organizer of the Indy Scala meetup. Dave Hrycyszyn is technical director for a London-based agency specializing in agile software design and development. Coauthors Stefan Ollinger and Jared Armstrong are both active Scalatra contributors.
About the Early Access Version
This Early Access version of Scalatra in Action enables you to receive new chapters as they are being written. You can also interact with the authors to ask questions, provide feedback and errata, and help shape the final manuscript on the Author Online forum.
Want to learn More?
Sign up to read more content when it is released and to receive news about this book.