Home - XLRIT/gears GitHub Wiki
This page explains how to configure, create, run and use the GEARS generated application, which is the combination of the specifically GEARS generated functionality + the generic functionality called the GEARS runtime.
- 1. Table of content
- 2. How to get started
- 3. How to configure GEARS and the generated application
- 4. How to generate, build and start the application
- 5. Need a mail server for testing?
When you are new to using GEARS you first need to get started. This is described in GS_00_Get_started_with_GEARS. There you will learn how to arrange pre-requisites, setup your first project and develop software using GEARS.
This is described in Configure GEARS generator.
Start it from VS Code, that has the GEARS Language Support extension installed. Press CTRL+SHIFT+B
and choose
- GEARS: .. Generate: if you have not already generated the designs and source code for your GEARS application
- GEARS: .. Build: if you have not already compiled the generated sources and the runtime to a working application.
-
GEARS: .. Run application. This will start the working application. The terminal window in VS Code will show the log of runtime. Once it says something like
Started <name of your application> in <nr of> seconds
you application is running. - GEARS: .. Load data: load any data. Most applications require this to work properly.
- GEARS: .. Run scenarios: run your test scenario's.
When you want to test mail functionality, you can either look in the SYS_MAIL table to find the mail that was send by your application. If you have configured your application to actually send mail you need a mail server. We provide 2 options for that hMailServer and a preconfigured Docker image.
On Windows the best option is probably hMailServer. These are the steps required to make it work:
- Press the Windows Key, type in Turn Windows Feature on and of and then turn on .NET Framework 3.5....
- Download and install hMailServer.
- Open the application hMailServer Administrator.
- Click Connect.
- Under Domains add a new domain
xlrit.local
. - Under xlrit.local click Accounts and add a new account
[email protected]
with passwordall
. - Click domain xlrit.local. Under Advanced enter
[email protected]
as the Catch-all address email address. - Under Settings > Advanced > TCP/IP ports > ...POP3 change TCP/IP port to
1110
. - Under the last Settings > Advanced > TCP/IP ports > ...25 / SMTP change the TCP/IP port to
2525
. - Optionally under Status you can check if the server is running, you can Pause or Resume it and under Logging you can view, Start and Stop logging.
On Linux or Mac the easiest solution would be to use our preconfigured mail server. It already has [email protected]
configured as the catch all email address.
- Download and install Docker.
- Install the VS Code extension Docker (by Microsoft)
- Create the following
docker-compose.yml
file:
version: '3'
services:
runtime:
image: "xlrit/mailserver"
container_name: "gears-mailserver"
ports:
- "1110:110"
- "2525:25"
- right click on that file and choose Compose Up:
You should be able to use any mail client but we prefer Thunderbird (because it nags the least about connecting to a locally running mail server). No matter which client the basic configuration of should be the following:
Section | Attribute | How to fill |
---|---|---|
E-mail settings | Name | Can be any name so let's choose All Test Mail
|
E-mail address | [email protected] |
|
Password | all |
|
Incoming Server settings | Protocol | POP3 |
Host (server)name | localhost |
|
Port | 1110 |
|
Security/Encryption/SSL | none |
|
Authentication method | Normal password |
|
Outgoing Server settings | Protocol | SMTP |
Host (server)name | localhost |
|
Port | 2525 |
|
Security/Encryption/SSL | none |
|
Authentication method | Normal password |