Download Mako Server Documentation and Tutorials

Keep in mind that the Mako Server is developed by using the Barracuda Application Server library and provides the same Lua programming API as the Barracuda Application Server.

Security

The tutorials are designed to be easy to use and require no authentication. The tutorials give you full access, via the browser, to write server side code, run executables, and many other things that is a no-no for a public server. For this reason, the tutorials must be run on a private network. You can make the tutorials more safe by preventing other computers on the network from accessing the server. Create a mako.conf file in the same directory as the Mako Server executable and add the two following lines:

host="localhost" sslhost="localhost"

Save the file and start the tutorials. The Mako Server will now bind to the loopback interface (localhost) and can only be access by using a browser on the same machine as where the Mako Server is executing.

Download Documentation and Tutorials

Lua Server Pages Tutorial

The tutorials include:

  • HTML Forms and LSP for Beginners:
    In this tutorial, we look into the basics of server side web scripting and how you can use HTML forms for sending data from the browser to the server.

  • Ajax For Beginners:
    This tutorial provides a working example for the article App Servers and Lua Scripting Speed Rich Web Applications for Small Devices.

  • Create high-level secure socket applications using the high-level socket library.

  • WebSocket for Beginners.

  • Use the HTTP client library for IoT and M2M communication.

  • Send e-mails using the SMTP library.

Downloading and getting started with the tutorials

Note: the Mako Server download includes a script that automates downloading, unpacking, and running the tutorials. You can use this script to download and run the tutorials or you can follow the instructions below:

  1. Download the ZIP file tutorials.zip (includes Barracuda App Server Documentation)
  2. Unzip tutorials.zip in the same directory you installed the Mako Server
  3. Load all tutorials as follows:
    ./mako -lBAS-API-Tutorial::BAS-API-Tutorial.zip -l::IoT.zip -lba::badoc.zip \ -lpacman::pacman.zip -lcertmgr::certmgr.zip -l::intro.zip

Online Reference Manual


Online Documentation: https://realtimelogic.com/ba/doc/