|Scalatra in Action
Dave Hrycyszyn, Stefan Ollinger, and Ross A. Baker
MEAP Began: January 2013
Softbound print: July 2015 (est.) | 325 pages | B&W
|Order now 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|
PART 1: Getting to know Scalatra
1 Introduction - FREE
2 A taste of Scalatra - AVAILABLE
PART 2: Core DSL
3 Routing - AVAILABLE
4 Working with user input - AVAILABLE
PART 3: Working with Scalatra
5 Handling JSON - AVAILABLE
6 Handling Files - AVAILABLE
7 Server-side templating - AVAILABLE
8 Testing - AVAILABLE
9 Configuration, build, and deploment - AVAILABLE
PART 4: Working with a database
10 Working with a database - AVAILABLE
11 Authentication - AVAILABLE
12 Asynchronous programming - AVAILABLE
13 Creating a RESTful JSON API with Swagger - AVAILABLE
A Installation and development setup - AVAILABLE
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
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.
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.