widgets

MicroApp Guide

MicroApp Integration Guide

Welcome! This guide provides step-by-step instructions for integrating and developing your @microtsm/vue MicroApp within a single-spa application.

settings_ethernet

Local Development

To develop your MicroApp locally, follow these steps:

link

1. Copy MicroApp URL

Copy the URL of your MicroApp's development server. This URL is crucial for registering your MicroApp with the main single-spa application.

Your local URL:

open_in_browser

2. Open Single-Spa App

Open your single-spa application in a web browser. This is the primary application that will host and manage your MicroApp.

build

3. Enable Dev Tools

Enable your browser's development tools. This will allow you to inspect elements, debug JavaScript, and monitor network requests for your MicroApp.

localStorage.setItem('devtools', true);
input

4. Activate Local Instance

Activate your local MicroApp instance by pasting the copied URL into the single-spa application's import map or configuration.

bolt

Standalone Mode with MicroTSM CLI

To start developing your MicroApp locally, use the MicroTSM CLI which provides a streamlined development experience powered by Vite. Run:

$ microtsm dev

This command will start the development server with hot module replacement (HMR) enabled, allowing you to see your changes instantly.