Create a directory for your Hello World application and then switch to it:
mkdir hello-world cd hello-worldCopied!
Create the application:
sudo mgrg -i -u $(whoami) helloCopied!
Create a file hello-world.gliim:
vim hello-world.gliimCopied!
and copy this code to it:
begin-handler /hello-world public get-param name @This is Hello World from <<p-out name>> end-handlerCopied!
This service takes input parameter "name" (see get-param), and then outputs it along with a greeting message (see output-statement).
Compile the application:
gg -q
Copied!
Run the application by executing this service from command line. Note passing the input parameter "name" with value "Mike":
gg -r --req="/hello-world/name=Mike" --exec --silent-headerCopied!
The output is:
This is Hello World from MikeCopied!
Gliimly is at https://gliimly.github.io/.