This directory contains examples that demonstrate advanced x0-realtime-features.
01-forms-microesb02-list-calculateable
Each example contains its own README.md with detailed information.
The most relevant examples have been recorded as videos.
You can find them in the x0-base-system repository under the example subdirectory.
Note
Check section 2 of the main /README.md for information about dependencies and system compatibility.
Note
Clone this repository to a local subfolder before proceeding.
The latest x0-system Docker images from ghcr.io/webcodex1/ are referenced in the example Dockerfiles.
Each example provides an activate.sh shell script.
To build and run an example (from the example's main directory):
# build and run example 1
cd ./01-forms-microesb
./activate.shThis script executes the following tasks in order:
- Copies the x0-metadata and backend scripts from the example content to
../www. - Builds a Debian metadata package, used for Docker container creation.
- Builds the Docker container
your-app, including the x0-application. - Builds the Docker container your-db, including all databases.
- Starts both containers and sets up the local Docker network.
Warning
Activating an example will delete and overwrite the current ../www content!
Note
Internet access is required to download external Docker images and Python pip3 packages.
- Add the hostname
x0-skeleton-test.x0.localnetwith IPv4 address172.20.0.10to your/etc/hostsfile. - Open
http://x0-skeleton-test.x0.localnet/python/Index.pyin your local browser.
Note
On older systems, application startup time may be longer. If the application isn’t fully started, you might see a 500 Internal Server Error.