Book Image

Expert Delphi - Second Edition

By : Marco Cantù, Paweł Głowacki
Book Image

Expert Delphi - Second Edition

By: Marco Cantù, Paweł Głowacki

Overview of this book

Master Delphi, the most powerful Object Pascal IDE and versatile component library for cross-platform native app development, by harnessing its capabilities for building natively compiled, blazingly fast apps for all major platforms, including Android, iOS, Windows, Mac, and Linux. Expert Delphi begins with a quick overview of Delphi, helping you get acquainted with the IDE and the Object Pascal language. The book then quickly progresses to more advanced concepts, followed by the architecture of applications and the FireMonkey library, guiding you through building server-side services, parallel programming, and database access. Toward the end, you’ll learn how to integrate your app with various web services and deploy them effectively. By the end of this book, you’ll be adept at building powerful, cross-platform, native apps for iOS, Android, Windows, and macOS—all from a single code base.
Table of Contents (21 chapters)
Free Chapter
1
Part 1: Building Blocks
6
Part 2: Going Mobile
12
Part 3: From Data to Services
19
Index

The ToDo list in RAD Server

Let’s now move to the implementation of a ToDo list server based on the architecture of the previous chapters, rather than directly exposing the database. Notice that there is nothing wrong with the approach we used in the previous section, but it’s good to get a bit deeper to better understand how RAD Server works:

  1. Let’s start by creating a proper folder structure for our projects. Create a new folder for RAD Server ToDo resource and client projects. Inside this folder, create three sub-folders: resource, client, and shared.
  2. Now, run the RAD Server wizard again. On the second page of the wizard, this time we can just pick a unit and use the resource name todo.
  3. On the third page, this time we want to pick the endpoints of the wizard (see Figure 13.8, again). Select Sample EndPoints and all five sub-elements These endpoints will translate to different HTTP request types and URLs. We want all of them because there are five...