Delphi is a cross-platform programming language and software development kit that supports rapid application development for Microsoft Windows, Apple Mac OS X, Android, and iOS.
With the help of seven practical projects, this book will guide you through the best practices, Delphi Run-Time Library (RTL) resources, and design patterns. Whether you use the Visual Component Library (VCL) or FireMonkey (FMX) framework, these design patterns will be implemented in the same way in Delphi, using Object Pascal. In the first few chapters, you will explore advanced features that will help you build rich applications using the same code base for both mobile and desktop projects. In addition to this, you'll learn how to implement microservice architecture in Delphi. As you get familiar with the various aspects of Delphi, you will no longer need to maintain source code for similar projects, program business rules on screens, or fill your forms with data access components.
By the end of this book, you will have gained an understanding of the principles of clean code and become proficient in building robust and scalable applications in Delphi.
Author(s): William Duarte
Publisher: Packt
Year: 2019
Language: English
City: Birmingham, United Kingdom
Dedication
About Packt
Foreword
Contributors
Table of Contents
Preface
Chapter 1: Building an Instagram Clone
Technical requirements
Project overview
Getting started
Mindset difference between desktop and mobile
Range of sizes
Creating responsive layouts
TLayout
Creating buttons with SVG icons
Interacting with the camera
Lights, camera, and action!
Sharing photos
Summary
Further reading
Chapter 2: Building a Facebook REST API
Technical requirements
Facebook Graph API and more
Project overview
Getting started
Creating an application on Facebook
Request and response REST services
TRESTClient
TRESTRequest
REST.Client.TRESTResponse
TOAuth2Authenticator
Get to work (hands-on)
Working with JSON
Logging in with Facebook
Coding login
Behind the scenes
Summary
Further reading
Chapter 3: Cross-Platform Services for Windows, iOS, and Android
Technical requirements
Project overview
Getting started
Creating Windows services
Installing and uninstalling a service
Starting and stopping
Debugging a service
Service threads
Creating Android services
Start services
Host applications
Adding an Android service to the host
Local services or remote services
iOS background mode
All in info.plist
Summary
Further reading
Chapter 4: Design Patterns to Build a Multi-Database System
Technical requirements
Project overview
Getting started
Creating a database
Creating an SQL Server database
Creating tables in SQL Server
Creating a PostgreSQL database
Creating tables in PostgreSQL
Models for a database – objects
The users object
The customers object
The products object
Exploring Delphi interfaces
Creating and using an interface
Repositories
SQL Server repository – part 1
SQL Server repository – part 2
PostgreSQL repository – part 1
PostgreSQL repository – part 2
Singleton
Presentation and final testing
Data presentation
Summary
Further reading
Chapter 5: Creating GUI Apps with FireMonkey
Technical requirements
Project overview
Getting started
Creating Material Design layouts
Using TMultiView
Adding menu items
Using Material Design icons
Colored effect
Working with animations
Floating button
Action button
Animate
Summary
Further reading
Chapter 6: Implementing Tethering to Create a Remote Control
Technical requirements
Project overview
Getting started
Creating app tethering applications
Using app tethering components
Sharing screens
Sending data from a mobile to a desktop
Opening an application remotely
Creating the desktop application
Creating the mobile application
Summary
Further reading
Chapter 7: Building Microservices Using the RAD Server
Technical requirements
Project overview
Getting started
What is a microservice architecture?
Why use a microservice?
Monolithic application
JSON or XML?
Introducing RAD Server
Where is RAD Server?
Configuring the first project
Consuming services on RAD Server
RAD Server application
Client application
Security
Authentication processes
Application-level authentication
User-level authentication
Authentication and authorization
Implementation
Deployment
Deployment on IIS
Summary
Further reading
Other Books You May Enjoy
Index