App Entry Point

Overview

The ability to load a built application using technologies such as HTML, CSS, and JS, as well as static files like vector images and videos, among others, is provided. This is achieved by providing the name of the main file that allows launching a web application, for example. Then, the SDK sets up a generic URL that hides the actual location from which that file is being read.

How to use it

A practical example would be to build an application using frameworks like React, Vue, Angular, Svelte, Astro, or others, or simply using JavaScript, HTML, and CSS. Afterwards, it is added to the classpath and referenced to the entry file of the application, such as index.html, although it could also be another one like app.html.

Example

resources
├── assets
│   ├── index.css
│   └── index.js
└── app.html
import com.equo.application.client.EquoApp;

public class AppEntryPointSample {
    public static void main(String[] args) {
        EquoApp.create("APP-ENTRY-POINT")
                .withBrowserUI()
                .launch("app.html"); // Load index.html from resources by default
    }
}

Result

AppEntryPoint

The previous example starts an application from the app.html file loaded from the classpath.