Skip to content

sasoria/astro-microfrontends-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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