---
title: "Developing Applications with App Builder"
source: "https://docs.vertesiahq.com/apps/app-builder"
markdown: "https://docs.vertesiahq.com/llms/apps/app-builder.md"
---

# Developing Applications with App Builder

App Builder provides a source-controlled workflow for developing Vertesia applications. It connects an application
to a Git repository, builds immutable versions from exact commits, and serves those versions through App Gateway.

Use App Builder when you want to:

- generate a starter Vertesia application or connect an existing one;
- keep application source in Vertesia Git or GitHub;
- build and inspect immutable versions without changing an installed deployment;
- expose validated versions through stable deployment aliases;
- debug a version with temporary settings in a project where the application is installed.

## Choose a source repository

The source repository is selected when you create an application in App Builder.

### Vertesia Git

Choose **Vertesia Git** for a repository managed by Vertesia. App Builder creates the repository and generates the
selected starter modules. You can continue development through App Builder or clone the repository and work locally.

### GitHub

Choose **GitHub** to keep GitHub as the source of truth. The connection has two steps:

1. Select **Connect GitHub** and authorize your GitHub identity.
2. Install the Vertesia App Builder GitHub App in a personal account or organization and grant it access to the
   repositories you want to use.

App Builder lists the repositories available through the selected installation. Use **Configure** to change the
repositories granted to an existing installation, or **Install GitHub App** to install it in another account or
organization.

After selecting an installation, choose one of these source workflows:

| Workflow | Repository choice | What App Builder changes |
| --- | --- | --- |
| **Use the existing application** | Select an existing repository. | Binds the application to the repository without changing its code. Select the source branch when creating a version. |
| **Generate a starter application** | Create a new GitHub repository. | Creates the repository and commits the selected starter modules to its initial branch. |
| **Generate a starter application** | Select an existing repository. | Commits the starter modules to a new or empty branch. A branch containing files cannot be used for generation. |

When generating into an existing repository, App Builder does not overwrite a populated branch. This includes the
default branch: `main` can be selected only when it is empty. You can instead enter a new branch name.

The connected GitHub repository remains an ordinary GitHub repository. Continue using its branches, pull requests,
branch protection rules, and CI workflows. Deleting the App Builder application does not delete the external GitHub
repository.

## Understand the lifecycle

App Builder separates source code, build artifacts, deployments, and project configuration:

| Concept | Purpose |
| --- | --- |
| **Application** | Stable identity and manifest for the product being developed. |
| **Source branch** | Mutable Git history used for development. A branch is not a deployment environment. |
| **Version** | Immutable build produced from an exact Git commit. |
| **Promoted version** | Default version used by installations that do not follow a deployment alias. |
| **Deployment alias** | Stable name and URL, such as `development`, `preview`, or `production`, that follows one immutable version. |
| **Installation** | Project-specific application configuration, permissions, credentials, and settings. |
| **Advanced Launch** | Temporary execution of one version with optional settings overrides, without changing an installation or deployment alias. |

A version is not only a development preview. It is the immutable release artifact that is tested, promoted, or
assigned to an alias. Opening a version directly is primarily a development and debugging operation.

## Build and test versions

Create a version from the branch or commit you want to test. App Builder records the exact commit SHA and builds the
UI and service artifacts from that source. Creating a version does not update the promoted version or move any
deployment alias.

Use **Launch** to open the exact version in the current project with the application's installed settings.

Use **Advanced Launch** when you need to:

- override installation settings temporarily;
- run the version in another accessible project in the same organization;
- reproduce a problem against another project's configuration or data without changing its installed deployment.

The application must already be installed in the target project, and you must have access to that project and
installation. The target project's installation settings initialize the form; your changes apply only to that
temporary launch. They do not modify the installation. Advanced launches are private to the user who creates them
and expire after they are no longer active.

## Publish stable deployments with aliases

A deployment alias gives a moving deployment a stable name and URL. An alias points to one immutable version at a
time, while one version may hold several aliases.

For example:

- `development` can follow the build shared by the development team;
- `preview` can follow the version being validated by customer testers;
- `production` can follow the version used by end users;
- `customer-demo` can expose a separate validation track when needed.

Manage aliases from the **Versions** tab in App Builder. Assigning an alias that already belongs to another version
moves it atomically to the selected version. Existing installations and stable alias URLs then resolve to the new
immutable version. The immutable version, rather than the alias text, remains the runtime version identity.

When installing an application from **Settings > Applications**, select the deployment alias that installation
should follow. Installation settings and permissions remain local to the project; moving the alias changes the code
served to that installation without copying its configuration.

Deployment aliases are independent of the promoted version. Promotion updates the default deployment, while moving
an alias updates only installations and URLs that follow that alias.

## Recommended project workflow

Organizations commonly separate users, permissions, data, and settings into different projects:

| Project | Suggested deployment | Typical users |
| --- | --- | --- |
| Development | `development` alias | Application developers |
| Preview or test | `preview` alias | Customer testers and reviewers |
| Production | `production` alias | End users |

Install the same application in each project and select the appropriate alias. Each installation retains its own
settings, permissions, credentials, and access to project data.

Do not create a second application merely to test another build against the same project. Use **Advanced Launch** to
run the candidate version in that project. The normal installation continues to follow its configured deployment,
while the temporary launch remains scoped to the developer who started it.

## A typical release flow

1. Develop on a Git branch and build an immutable version from its exact commit.
2. Launch that version in the development project and validate it with temporary settings when necessary.
3. Move the `preview` alias to the validated version so customer testers can use their stable URL and installation.
4. After approval, move the `production` alias to the same version.
5. Continue development on other branches without changing the preview or production deployments.

This model keeps Git branches focused on source collaboration, versions focused on reproducible builds, aliases
focused on stable deployments, and installations focused on project-specific configuration.