|Scalatra in Action
Ivan Porto Carrero, Ross A. Baker, Dave Hrycyszyn, Stefan Ollinger, and Jared Armstrong
MEAP Began: January 2013
Softbound print: Fall 2013 | 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|
1. Introduction - FREE
2. A taste of Scalatra - AVAILABLE
4. Working with user input
5. Handling data - AVAILABLE
6. Views with template systems
8. Extending Scalatra
9. Adding model to view-controller
10. Authenticating users
11. Asynchronous and realtime Scalatra
12. Creating a RESTful JSON API with Swagger - AVAILABLE
13. Deploying your application
A. Scala basics for scalatraists
B. Simple build tool essentials
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
Want to learn More?
Sign up to read more content when it is released and to receive news about this book.