0%

Book Description

If you want the ultimate in security for your web applications you need to know the Lift framework. This book lets you dive straight into a whole range of features and techniques thanks to its 50+ practical recipes.

  • Lift made easy with step-by-steps recipes written by a developer for developers
  • Practical examples covering topics from basic to advanced levels
  • Learn to use Schemifier to automatically create tables and columns
  • Understand how to integrate Lift with other technologies and social media
  • Filled with task-based recipes to create web applications in a very secure manner

In Detail

Developing secure web applications is one of the most important tasks developers have to deal with. With Lift, it is easy to create solid and formidable web applications as it is the most secure web framework available today. The View-First approach and being able to handle things as purely data transformation, makes working with Lift an exciting task.

"Lift Application Development Cookbook" teaches you how to build web applications using this amazing framework. The book moves gradually, starting with the basics (starting a new project, submitting a form, and so on) before covering more advanced topics such as building a REST API and integrating your application with other technologies and applications.

"Lift Application Development Cookbook" takes you on a journey of creating secure web applications. Step-by-step instructions help you understand how things work and how various elements relate to each other.

You'll learn different ways to process a form, build dynamic HTML pages, and create an API using REST. You'll also learn how to work with relational and NoSQL databases and how to integrate your application with other technologies as well as with third-part applications such as Gmail and Facebook.

By the end of the book, you will be able to understand how Lift works and be able to build web applications using this amazing and exciting framework.

Table of Contents

  1. Lift Application Development Cookbook
    1. Table of Contents
    2. Lift Application Development Cookbook
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with Lift Basics
      1. Introduction
      2. Creating a Lift application using SBT
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Creating a Lift application using Maven
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Defining a SiteMap
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      5. Logging using logback
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      6. Sending e-mails using Gmail's SMTP server
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    9. 2. Working with HTML
      1. Introduction
      2. Transforming HTML elements using their IDs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Creating an HTML list using CSS selectors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      4. Creating an HTML table with dynamically defined columns
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      5. Nesting snippets
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Dynamic menu rendering
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. Localizing templates
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      8. Testing snippets using Specs2
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      9. Creating custom error pages
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Sending JavaScript commands from the server
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      11. Invoking server-side functions from the client
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    10. 3. Working with Forms
      1. Introduction
      2. Creating forms
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Validating forms
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Creating an Ajax form
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Creating multipage forms
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      6. Defining a relation between form fields
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    11. 4. Working with REST
      1. Introduction
      2. Getting data from the server
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Creating data using the REST service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      4. Modifying data using the REST service
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Deleting data using the REST service
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Testing a REST service using Specs2
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      7. Uploading a file using the REST service
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Creating an RSS feed
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    12. 5. Working with Databases
      1. Introduction
      2. Configuring a connection to database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also...
      3. Mapping a table to a Scala class
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also...
      4. Creating one-to-many relationships
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      5. Creating many-to-many relationships
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      6. Creating CRUD features with CRUDify
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Paginating result sets
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Using an in-memory database in application tests
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    13. 6. Working with Record
      1. Introduction
      2. Configuring a connection to a database using Squeryl
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Mapping a table to a Scala class
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      4. Migrating the database using Liquibase
        1. Getting ready...
        2. How to do it...
        3. How it works...
        4. See also
      5. Creating one-to-many relationships
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Creating many-to-many relationships
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Paginating result sets using Record
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Testing your application using an in-memory database
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    14. 7. Working with MongoDB
      1. Introduction
      2. Connecting to MongoDB using record
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Mapping a MongoDB collection to a Scala class
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Mapping embedded objects
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      5. Mapping referenced objects
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      6. Querying with Rogue
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
    15. 8. Integrating Lift with Social Media
      1. Introduction
      2. Signing up using a Facebook account
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also...
      3. Fetching a user's Facebook data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      4. Signing up using a Gmail account
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      5. Fetching a user's Gmail data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      6. Signing up using a LinkedIn account
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      7. Fetching a user's LinkedIn data
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Signing up using a Twitter account
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also...
      9. Fetching a user's Twitter data
        1. Getting ready
        2. How to do it...
        3. How it works...
    16. Index
3.17.203.68