wCart Tutorial part 3. Create Server Actions

A. Introduction

For our Server Actions we need to prepare for Users, Products and Orders. The first two are very straight forward although for our project we will not be creating the full CRUD to keep things simple. The Orders Server Action is going to be a bit more complicated so that we will leave that for later on.

B. Steps

  1. Create the folders with the actions.

    image

  2. Create the Actions Steps to list our Products

    a) Add the Database Connection as per https://docs.wappler.io/t/connecting-to-a-database/2873

    b) Add the Database Query as per https://docs.wappler.io/t/creating-database-queries/2872

  3. Repeat 2. for the Action Steps for Users

Next Part

1 Like