Comparing Sidecar-less Service Mesh from Cilium and Istio
Building an app together, part 1, roy hart & daniel coellar
1. Slide 1 – Let’s go ahead & get started. Let me introduce Daniel Coellar, who is a senior
consultant in our office & a certified GeneXus instructor. So, hopefully you will again
meet him when you sign up & take the GX class. My name is Roy Hart with GeneXus
USA. In this session we are going to build a GeneXus app & focus on the Web part. In
part 2 to this we will build a smart devices app. We only have 30 minutes, so let’s jump
right into it.
1
2. Slide 2 – Daniel’s House of Beer. Gee I wonder where we got that name from…. The
scenario is that we are a start-up and we have opened a restaurant. There’s an existing
web site but it isn’t much. So, we want to build a web site for on-line ordering that looks
good & show a map of our locations. For our part, we will be focusing in on the web
piece, and then in part 2, we will build a smart device app as well. As you see what
Daniels is doing now, is that he creating a KB from scratch. This is a live demo so we will
most likely have a couple of errors, but we’ll fix them on the spot.
In GX:
Create a new KB from scratch
2
3. Slide 3 – ERD Diagram of existing tables coming from data that already exists + cart data.
We have data in our company that needs to be reused. So, there is a key piece of
technology, or utility, that comes with GX. It is called the data base reverse engineering.
It is really an ETL tool. It comes with GX and gives you the ability to use all of our
supported databases, like Oracle, DB2, MySQL, etc. I know that other tools charge extra
for databases such as Oracle, but GX does not. GX is very much an integration tool so
that you can integrate disparate back-end databases. In our case we want to re-use 5
SQL tables. (describe DBRET as Daniel does it). It auto creates some key objects for us.
Namely, a data view object and a transaction for all of our tables.
For the cart transaction, we are going to create a transaction for that.
In GX:
Do DBRET for the 5 tables.
3
4. Slide 4 – Cart Transaction: explain as he goes.
Explain what a transaction does for the programmer: builds & easily maintains the data
model, refactors the DB, meaning if you make a change, GX is going to handle the
change for you & migrate the data. We won’t actually show that but it is an important
feature to at least mention. We can show you that at some other time.
Explain domains as a special data type
Explain rules
Formulas
In GX:
Create cart transaction
Domains
Enumerated domains
Show web default form
Rules for cart transaction (from slide)
4
5. Slide 5 – ER Diagram
Explain relationship between tables
The importance of names in GX
In GX:
Build ER diagram in GX.
5
6. Slide 6 – GeneXus Auto Build
Explain auto build
In GX:
Setup data stores & run
Show items
Add cart data
Show RI
6
7. Slide 7 - GAM
Explain GAM from slide
In GX:
Enable GAM
Set compiler flag
Set cart as BC
Uncomment Rule
Import objects (XPZ)
Rebuild All
7
9. Slide 9 – The Overall Web App We Are Going to Build
Explain the web site shopping cart that we are building
9
10. Slide 10 – The Web Cart Component (Shopping Cart for our restaurant)
Explain FreeStyleGrid
Implicit binding of data by just dragging & dropping attributes
Drag & drop user controls & images
Modify properties & classes.
In GX:
Setup login object
Set webhome as the startup object
Build Web Panel from template
Go to Events of Web Panel & drop code snippet
10
11. Slide 11 – Add to Cart Procedure
With app running:
Explain Events
Explain Login
Explain add to the cart procedure
Explain view cart
Explain locations.
In GX:
Code Add to Cart Procedure via snippet
Run
Show map.
11
12. Slide 12 – Deploy to Cloud. To Be Continued
Explain prototyping to the cloud is included with GX.
In GX:
Create new target environment
Set properties
12
13. Slide 13 – Thank You
We will make the KB available and you can run it via the trial.
See the SD app getting built in the other session, Part 2.
Any Q&A
13