Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Cover Illustration

1. Introduction to Scalatra

Chapter 1. Introduction

1.1. What’s Scalatra good at?

1.2. Hello World

1.3. Microframeworks vs. full-stack frameworks

1.4. How does Scalatra compare with other Scala web frameworks?

1.4.1. Scalatra is a lean MVC framework

1.4.2. Scalatra runs on servlets

1.5. Installing Scalatra

1.5.1. Generating a new project

1.5.2. Downloading dependencies and building the app

1.5.3. Starting the Hello World application

1.5.4. Making changes and seeing them in your browser

1.6. Summary

Chapter 2. A taste of Scalatra

2.1. Your first Scalatra application

2.2. Designing the UI

2.3. What’s in a Scalatra project?

2.4. Building the data model

2.5. Retrieving pages

2.5.1. A page-retrieval route

2.5.2. A page-retrieval action

2.6. Rendering the page

2.6.1. A quick introduction to Scalate

2.6.2. Adding a layout

2.7. Writing tests

2.7.1. Writing your first test

2.7.2. Running your tests

2.7.3. Adding another test

2.8. Getting ready for deployment

2.9. Summary

Chapter 3. Routing

3.1. Anatomy of a route

3.2. Choosing the right method

3.2.1. The CRUD methods

3.2.2. The lesser-known methods

3.2.3. Overriding the methods

3.3. Route matchers

3.3.1. Path expressions