Finally, have the following for globals export/import in gzip:

// export gbl
set gbl="foo*D.GBL,boo*D.GBL"
set s=##class(%Stream.FileBinaryGzip).%New() do s.LinkToFile("1.xml.gz") do $System.OBJ.ExportToStream(gbl,s) do s.%Save() kill s
// gbl import
set s=##class(%Stream.FileBinaryGzip).%New() do s.LinkToFile("1.xml.gz") do $System.OBJ.LoadStream(s) kill s

If you have only classes and globals you can use

do $System.OBJ.Export("Package*.CLS,*.DFI","release.xml")

to export the classes and DFIs to file,

Do $System.OBJ.Export("Class*D.GBL","globals.xml")

to export globals to file in the /mgr folder of your namespace.

And use Class Import page of the Control Panel (http://yourhost:57772/csp/sys/exp/%25CSP.UI.Portal.ClassList.zen) to import classes or globals:

Or call in terminal:

$system.OBJ.Load(path to a file.xml) 

As Benjamin mentioned before.

There is another quite popular approach for web UI building with InterSystems Caché:

  • Caché ObjectScript and REST on the Caché side, 
  • Any popular web framework on the browser client side (Angular.js, React.js, etc.),
  • JSON as a transport between Caché and framework.

Examples:

REST Forms and REST Forms UI,

DeepSee Web, DC analytics as a demo

Caché Class Explorer,

etc.