Free Sample
+ Collection

Lift Application Development Cookbook

Gilberto T. Garcia Jr.

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.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849515887
Paperback254 pages

About This Book

  • 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

Who This Book Is For

This book is for developers who have at least some basic knowledge about Scala and who are looking for a functional, secure, and modern web framework. Prior experience with HTML and JavaScript is assumed.

Table of Contents

Chapter 1: Getting Started with Lift Basics
Creating a Lift application using SBT
Creating a Lift application using Maven
Defining a SiteMap
Logging using logback
Sending e-mails using Gmail's SMTP server
Chapter 2: Working with HTML
Transforming HTML elements using their IDs
Creating an HTML list using CSS selectors
Creating an HTML table with dynamically defined columns
Nesting snippets
Dynamic menu rendering
Localizing templates
Testing snippets using Specs2
Creating custom error pages
Sending JavaScript commands from the server
Invoking server-side functions from the client
Chapter 3: Working with Forms
Creating forms
Validating forms
Creating an Ajax form
Creating multipage forms
Defining a relation between form fields
Chapter 4: Working with REST
Getting data from the server
Creating data using the REST service
Modifying data using the REST service
Deleting data using the REST service
Testing a REST service using Specs2
Uploading a file using the REST service
Creating an RSS feed
Chapter 5: Working with Databases
Configuring a connection to database
Mapping a table to a Scala class
Creating one-to-many relationships
Creating many-to-many relationships
Creating CRUD features with CRUDify
Paginating result sets
Using an in-memory database in application tests
Chapter 6: Working with Record
Configuring a connection to a database using Squeryl
Mapping a table to a Scala class
Migrating the database using Liquibase
Creating one-to-many relationships
Creating many-to-many relationships
Paginating result sets using Record
Testing your application using an in-memory database
Chapter 7: Working with MongoDB
Connecting to MongoDB using record
Mapping a MongoDB collection to a Scala class
Mapping embedded objects
Mapping referenced objects
Querying with Rogue
Chapter 8: Integrating Lift with Social Media
Signing up using a Facebook account
Fetching a user's Facebook data
Signing up using a Gmail account
Fetching a user's Gmail data
Signing up using a LinkedIn account
Fetching a user's LinkedIn data
Signing up using a Twitter account
Fetching a user's Twitter data

What You Will Learn

  • Start a new web application using Lift
  • Manage and validate forms to handle data submitted by users
  • Build an application to create and maintain client data by using a REST interface
  • Use Mapper, an ORM system for relational databases, included with Lift
  • Use Liquibase to manage database changes incrementally
  • Integrate Lift and Akka
  • Schedule jobs using Quartz
  • Integrate your application with JMS queues
  • Use IoC frameworks such as Google Guice and Spring
  • Use social media to log in users
  • Fetch user data from social media

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.


Read More