Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    Organise your application components (Applications and modules)

    Organise your application components (Applications and modules)

    1 Context

    icon
    In B1, we utilize applications and modules to provide structure to our development process. Think of it as a tree structure. At the highest level, we have the application, which is further divided into different modules. These modules are used to organize the app and handle the associated objects. Each individual app can be deployed independently, enabling us to manage multiple applications simultaneously within a single repository.
    image

    2 Steps by step guide

    Create the app

    1. Navigate to “Design” → “Applications” in B1
    2. Click on the button “New App” in the toolbar
    3. image
    4. Fill in the following attributes
      1. Code → MyApp
      2. Name → MyApp
      3. Description → My First App
      4. Installed → Set the checkmark
      5. Theme → b1-air
    5. Skip the Advanced Options
    6. Click on the button “Create” in the toolbar
    7. icon

      If you click on Create button, an object of type SwatApp will be created in the background, which we will populate in one of the later tasks.

    Create the module

    image
    1. On the same "Applications" screen, click on the "Modules in the app" tab in the right tabbar to switch the view.
    2. Click on the button “+ New Module” in the toolbar.
    3. Fill in the following attributes.
      1. Module Name → “MyAppModule”
      2. Application → Select the application “MyApp”
      3. Data folder → “MyApp”
      4. icon

        In this folder, all objects that belong to this module will be stored and saved later. You can find the folder in Gitpod under src/data/repository

    4. Click on “Confirm” to create the module

    3 Result

    icon
    We have just created our first application with module as shown in the above figure. We will launch it at the end of the training to see the result.

    4 Helpcenter Article

    App

    Apps can be created in Build.One using the SwatApp object type. When creating them, an initial screen, theme and some other configurations can be set. An app can be exported to deploy it as a standalone environment on a selected server, see ‣ .

    helpcenter.build.one

    Logo