Lift Application Development Cookbook


Lift Application Development Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 254 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1849515883
ISBN 13 : 9781849515887
Author(s) : Gilberto T. Garcia Jr.
Topics and Technologies : All Books, Application Development, Cookbooks, Open Source

Table of Contents

Preface
Chapter 1: Getting Started with Lift Basics
Chapter 2: Working with HTML
Chapter 3: Working with Forms
Chapter 4: Working with REST
Chapter 5: Working with Databases
Chapter 6: Working with Record
Chapter 7: Working with MongoDB
Chapter 8: Integrating Lift with Social Media
Index
  • Chapter 1: Getting Started with Lift Basics
    • Introduction
    • 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
      • Introduction
      • 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
        • Introduction
        • Creating forms
        • Validating forms
        • Creating an Ajax form
        • Creating multipage forms
        • Defining a relation between form fields
        • Chapter 4: Working with REST
          • Introduction
          • 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
            • Introduction
            • Configuring a connection to the 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
              • Introduction
              • 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
                • Introduction
                • 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
                  • Introduction
                  • 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

                  Gilberto T. Garcia Jr.

                  Gilberto T. Garcia Jr. has a Bachelor's degree in Philosophy from USP, and has been working with Internet-related technologies since 1999. He had worked with different programming languages in several projects with different sizes and complexities. As a person who enjoys learning new things, he started to study and work with Scala and Lift in 2010.
                  Sorry, we don't have any reviews for this title yet.

                  Code Downloads

                  Download the code and support files for this book.


                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                  Errata

                  - 2 submitted: last submission 25 Feb 2014

                  Page Number: 9 | Errata Section: How to do it | Errata Type: Code | Errata Date: 11th October, 2013

                  1. Skip the following step
                  From:
                  <groupId>org.scala-tools</groupId>
                  <artifactId>maven-scala-plugin</artifactId>
                  <version>2.15.2</version>
                  To:
                  <groupId>net.alchim31.maven</groupId>
                  <artifactId>scala-maven-plugin</artifactId>
                  <version>3.1.5</version>

                  2. Or, use the new archetype, that was released a few days ago, to create the project.
                  mvn archetype:generate  ^
                  -DarchetypeGroupId=net.liftweb  ^
                  -DarchetypeArtifactId=lift-archetype-basic_2.10  ^
                  -DarchetypeVersion=2.5 ^
                  -DgroupId=lift.cookbook  ^
                  -DartifactId=chap01-mvn ^
                  -Dversion=1.0 ^
                  -DarchetypeRepository=https://oss.sonatype.org/content/repositories/releases

                  Errata Page: 6 | Errata Type: Technical | Errata Section: How to do it

                  Then, go to scala_210/ift_basic

                  should be:

                  Then, go to scala_210/lift_basic

                   

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  Lift Application Development Cookbook +    Linux Mint Essentials =
                  50% Off
                  the second eBook
                  Price for both: £24.65

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • 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.

                  Approach

                  Lift Application Development Cookbook contains practical recipes on everything you will need to create secure web applications using this amazing framework.
                  The book first teaches you basic topics such as starting a new application and gradually moves on to teach you advanced topics to achieve a certain task. Then, it explains every step in detail so that you can build your knowledge about how things work.

                  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.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Resources
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software