First Steps with GeneXus M

Official Content
This documentation is valid for:

This is a step-by-step guide to create your first Application with GeneXus M.

If you didn't already, GeneXus M Installation Steps now, and then follow steps displayed below (or download this PDF with detailed instructions)

Step 1: Create Project

Create your first Knowledge Base

Step 2: Start Modelling

Create your first Knowledge Base and then start modelling by discovering your business entities and their rules. For example, let's create an API for Insert/Update/Delete Customers

Entity Customer
	CustomerName! [ DataType = Character, Length = 40 ]
	CustomerImage [ DataType = Image ]
	CustomerBalance [ Length = 10, Decimals = 2 ]
	CustomerRegisterDate [DataType = Date]
	Error("Please specify a name") if CustomerName.IsEmpty();
	Default(CustomerRegisterDate, today());

Once you declare your entities probably you want to expose different views of the data to different clients of your API

So, GeneXus M  allows presenting these different views, queries of your entities by using Data Providers

For example, expose all the customers with a balance > 10000

DataProvider GetCustomers
        Order CustomerName
        Where CustomerBalance > 10000
            Id = CustomerId          
            Name = CustomerName        

Step 3: Run prototypes of your Application

Now you have created the Customer Entity and the GetCustomers Data Provider, you can Build All and then Run your prototype

enlightenedStarting with this conceptual model, what is GeneXus M going to generate?

GeneXus M uses a business expert generator to create a database layer (DL) plus a business logic layer (BL) automatically and exposes the BL as a Restful API. Additionally, it generates a full Open API description of the API so that you can start using and trying it from any REST API client or any OPEN API editor like the Swagger online.

When you run the prototype, you get two URLs

1) The one of the Developer Menu (eg.: http://<server2>/<MyApp>/static/developermenu.html)

Use it to Create, Read, Update, Delete data on your entities.

2) and the one of the OPEN API specification of your REST API (eg.: http://<server2>/<MyApp>/static/default.yaml

Copy its content to to test it.

Step 4: Create a Mobile or Web Application

You can now follow up as doing with GeneXus: Create Web or Smart Devices Panels, and build your own mobile or web application.

You even can use Live Editing with this IDE!