1 Context
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.
2 Steps by step guide
Create the app
- Navigate to “Design” → “Applications” in B1
- Click on the button “New App” in the toolbar
- Fill in the following attributes
- Code → MyApp
- Name → MyApp
- Description → My First App
- Installed → Set the checkmark
- Theme → b1-air
- Skip the Advanced Options
- Click on the button “Create” in the toolbar
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
- On the same "Applications" screen, click on the "Modules in the app" tab in the right tabbar to switch the view.
- Click on the button “+ New Module” in the toolbar.
- Fill in the following attributes.
- Module Name → “MyAppModule”
- Application → Select the application “MyApp”
- Data folder → “MyApp”
- Click on “Confirm” to create the module
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
3 Result
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.