Chapter 6: Server-Side Logic
Our applications don't live only on data and beautiful screens. For all this to work, there has to be the glue that connects all the parts: logic! For this, at the backend level, the platform provides abstraction artifacts known as Server Actions that allow us to create functionalities and business logic. Through them, we are able to ensure the robustness of our data, efficiently follow business rules, and abstract complexity from our application.
This chapter focuses on developing our Server Actions in order to build and abstract our business rules and data handling in a robust and non-compromising way, thus facilitating the logical operation of our applications.
In this chapter we will cover the following topics:
- Introducing logic actions
- Types of variables in Server Actions
- Taking logic decisions with conditional paths
- Creating loops
- Exercise 2 – Creating Server Actions
By the end of this chapter, it is...