Developer Tutorial

Step 1: static page

Goal of this step: See how to host a static HTML file on Boomla. It will look almost too easy. In the next steps you will see how nicely this trivial example fits into the overall design of the platform.

Traditional approach

Let me give you a traditional example first to set the context. The filesystem of a traditional static website with a single index.html file could look like this:

PATH
//example.com               --> this would be mapped to a directory on your server
//example.com/index.html

That’s it. You store the HTML code in the index.html file and upload it onto your server.

Boomla approach

In contrast, the Boomla equivalent would look like this:

PATH                             [TYPE]
//example.com                    [html-1]

In Boomla, every file is a directory at the same time. This means we don’t need an extra index.html file as you can store the HTML code directly in your root file.

On the other hand, you can't change the file extension of the root file (think example.com), so Boomla has file types instead. To serve a HTML document, set the file's type to html-1.

Multiple pages

You can create multiple pages like this:

PATH                             [TYPE]
//example.com                    [html-1]
//example.com/about              [html-1]
//example.com/contact            [html-1]

See how to do it (silent video)

Next

The point of this step was to show you how easy it is to get started with using Boomla.

Next, we will write a simple JavaScript app.

Subscribe to our newsletter!