Skip to content

Deploy Your First Static Web Application

Choreo is an internal developer platform as a service that simplifies building, deploying, monitoring, and managing cloud-native applications. It allows developers to focus on innovation and implementation by handling platform complexities.

In this guide, you will learn how to deploy a static web application using Choreo. The sample application is a simple to-do list where users can add tasks.

This guide walks you through the following steps:

  1. Create a project.
  2. Create a Web Application component and connect it to a GitHub repository.
  3. Build the web application.
  4. Deploy the web application and access it.

For a video tutorial, see Deploy a Static Web App on Choreo.

Prerequisites

  1. GitHub account: Fork the choreo-sample-todo-list-app repository, which contains the sample for this guide.

  2. If you're signing in to the Choreo Console for the first time, create an organization:

    1. Go to https://console.choreo.dev/ and sign in using your Google, GitHub, or Microsoft account.
    2. Enter a unique organization name. For example, Stark Industries.
    3. Read and accept the privacy policy and terms of use.
    4. Click Create.

    This creates the organization and opens the organization home page.

Step 1: Create a project

  1. Go to https://console.choreo.dev/ and sign in. This opens the organization home page.
  2. On the organization home page, click + Create Project.
  3. Enter the following details:

    Tip

    The Name field must be unique and cannot be changed after creation.

    Field Value
    Project Display Name Sample project
    Name sample-project
    Project Description My sample project
  4. Click Create. This creates the project and opens the project home page.

Step 2: Create a web application component

  1. On the project home page, click Web Application under Create a Component.
  2. Enter a unique name and description for the web application.
  3. Go to the GitHub tab.
  4. Click Authorize with GitHub to connect Choreo to your GitHub account. If you haven't connected your GitHub repository to Choreo, enter your credentials and select the repository you forked earlier to install the Choreo GitHub App.

    Alternatively, paste the choreo-sample-todo-list-app repository URL in the Provide Repository URL field. However, enabling Auto Deploy requires authorizing the repository with the Choreo GitHub App.

    Note

    The Choreo GitHub App requires: - Read and write access to code and pull requests. - Read access to issues and metadata.

    You can revoke access at any time. Write access is only used for sending pull requests; Choreo will not push changes directly to your repository.

  5. Enter the following information:

    Field Value
    Organization Your GitHub account
    Repository choreo-sample-todo-list-app
    Branch main
  6. Select NodeJS as the Buildpack.

  7. Enter the following details:

    Field Value
    NodeJS Project Directory /
    Language Version 20.x.x
    Port 8080
  8. Click Create. Choreo initializes the component with the sample implementation and opens the Overview page of the component.

Now let's build and deploy the web application.

Step 3: Build your web application

  1. In the left navigation menu, click Build.
  2. In the Builds pane, click Build Latest.

    Note

    The build process may take some time. You can track progress in the Build Details pane. Once complete, the build status changes to Success.

Now you can proceed to deploy your web application.

Step 4: Deploy and access your web application

  1. In the left navigation menu, click Deploy.
  2. In the Set Up card, click Configure and Deploy. This opens the Configure & Deploy pane. In this guide, you do not need to add a file mount.
  3. Click Deploy. The deployment to the Development environment may take a few minutes. Once complete, the Deployment Status will show as Active in the Development card.
  4. To verify that the web application is hosted successfully, click the Web App URL on the Development card. This takes you to the web application. You can try adding tasks by specifying a task ID and task label.

After successfully testing your web application, explore other Choreo features like observability and DevOps.