0%

Book Description

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 committer, and an organizer of the Indy Scala meetup.

    Table of Contents

    1. Copyright
    2. Brief Table of Contents
    3. Table of Contents
    4. Preface
    5. Acknowledgments
    6. About this Book
    7. About the Cover Illustration
    8. Part 1. Introduction to Scalatra
      1. Chapter 1. Introduction
      2. Chapter 2. A taste of Scalatra
      3. Chapter 3. Routing
      4. Chapter 4. Working with user input
    9. Part 2. Common development tasks
      1. Chapter 5. Handling JSON
      2. Chapter 6. Handling files
      3. Chapter 7. Server-side templating
      4. Chapter 8. Testing
      5. Chapter 9. Configuration, build, and deployment
      6. Chapter 10. Working with a database
    10. Part 3. Advanced topics
      1. Chapter 11. Authentication
      2. Chapter 12. Asynchronous programming
      3. Chapter 13. Creating a RESTful JSON API with Swagger
    11. Appendix. Installation and development setup
    12. Index
    13. List of Figures
    14. List of Tables
    15. List of Listings
    3.148.113.229