Lift Application Development Cookbook
eBook - ePub

Lift Application Development Cookbook

  1. 254 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Lift Application Development Cookbook

About this book

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.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Lift Application Development Cookbook


Table of Contents

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

Table of contents

  1. Lift Application Development Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Lift Application Development Cookbook by Gilberto T. Garcia in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.