• mg_web and mgweb-server: rapid M-based REST API Development

    From rtweed@21:1/5 to All on Fri Nov 20 06:19:14 2020
    My colleague Chris Munt recently published his mg_web repository:

    https://github.com/chrisemunt/mg_web

    This provides a modern and high-performance solution for connecting the main industrial-strength web servers (IIS, Apache and NGINX) to an M system (YottaDB, Cache or IRIS)

    I've build mgweb-server on top of mg_web:

    https://github.com/robtweed/mgweb-server

    This provides an off-the-peg standard way to configure and use mg_web to rapidly and simply create JSON-based REST APIs using an M back-end (ie all the code can be written in M or ObjectScript).

    I've made it even easier to try out by creating a pre-built Dockerised version which incorporates YottaDB, the web server, mg_web and mgweb-server. There's a Docker container for Linux (which uses NGINX as the web server) and for the Raspberry Pi (which
    uses Apache as the web server).

    Linux: docker pull rtweed/mgweb
    Raspberry Pi: docker pull rtweed/mgweb-rpi

    To provide a ready-to-run example of how it can all be used and to provide an exemplar for how to develop REST APIs using these technologies, I've also created the mgweb-conduit repository:

    https://github.com/robtweed/mgweb-conduit

    Follow the instructions in its README document and you'll have it all up and running in a matter of minutes, and you can then explore all its moving parts to see how you could build out your own M-based REST APIs using a proper industry-standard
    industrial-strength web server.

    Enjoy!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rtweed@21:1/5 to All on Tue Nov 24 07:09:52 2020
    I've updated the Containers to allow the YottaDB Global files to be mapped into a host directory, so that your YottaDB data will be retained between Container restarts.

    Setting your Container up to do this is very simple and fully documented in the mgweb-server repository's README file:

    https://github.com/robtweed/mgweb-server

    I do hope some of you try out this new technology - all Open Source and free for anyone to use. Do let me know how you get on with it

    Rob

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rtweed@21:1/5 to All on Wed Nov 25 07:18:31 2020
    A further update: I've updated the mgweb-server and mgweb-conduit repositories and added to their README files instructions on how to use IRIS with the mgweb-server Container. You can can have Apache and mg_web running in the mgweb-server container,
    connected to the IRIS Community Edition Container, where the actual M/ObjectScript routines run and the ^conduit* Globals are maintained. All do-able in just a few minutes!

    See:

    - https://github.com/robtweed/mgweb-server#using-the-mgweb-server-container-with-iris
    - https://github.com/robtweed/mgweb-conduit#setting-up-mgweb-conduit-on-an-iris-system

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rtweed@21:1/5 to All on Thu Dec 3 10:55:30 2020
    Two new detailed tutorials, one for YottaDB, one for IRIS:

    https://github.com/robtweed/mgweb-server/blob/master/TUTORIAL.md https://github.com/robtweed/mgweb-server/blob/master/IRIS.md

    Rob

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)