UBOS provides two “toy” Apps that help explain how to package and distribute real web Apps on UBOS:
-
“Hello World” is an extremely simple Web application that just displays “Hello World” when accessed over the web. We use it to give you a taste for what is involved to package web application for UBOS.
-
“Glad-I-Was-Here” is a slightly more complex “guestbook” web application that uses a relational database to store the guestbook entries. We use it to illustrate how to package web App that use a database. It now comes in four versions:
-
implemented in PHP with a Mariadb backend, called
gladiwashere-php-mysql
; -
implemented in PHP with a Postgresql backend, called
gladiwashere-php-postgresql
; -
implemented in Java with a Mariadb backend, called
gladiwashere-java-mysql
; and -
implemented in Python/WSGI with a Mariadb backend, called
gladiwashere-python-mysql
-
The PHP versions of Glad-I-Was-Here can also be configured with an Accessory called
gladiwashere-php-footer
. This Accessory adds additional content (a footer) to the main
web page. This demonstrates the basic functioning of Accessories.
Note
These toy App are published in the toyapps
repository, which is not enabled
by default. For how to enable,
see How to enable non-standard Package Repositories.
Of course, instead of using the pre-built Apps, you can check out their code at https://gitlab.com/ubos/ubos-toyapps/ and build them youself with the development setup described in Build and run your first UBOS standalone App.
You may want to read through the documentation for these Apps in this sequence: