/astro-microfrontends-ssr

Server-side composition of microfrontends using Astro

Primary LanguageJavaScriptMIT LicenseMIT

astro-microfrontends

This demo takes advantage of EcmaScript Modules (ESM) to server-side render micro-frontends. Express is used for serving assets, but ideally one would have a dedicated CDN hosting them.

Features

  • 🧑‍🚀 Server-side rendering of micro-frontends
  • ✨ Server-side composition of micro-frontends
  • 📦 Cacheable remote modules with Deno

Usage

Micro-frontends

  • Build each microfrontend with npm run build
  • Start each microfrontend with node server.js

Shell application

  • Build the shell with npm run build
  • Start the shell with npm run preview