This repository demonstrates a modern micro-frontend architecture using Vue 3, Vite, and Module Federation (via OriginJS vite-plugin-federation). It features file-based routing inspired by Nuxt and a modular, scalable structure for rapid prototyping and real-world projects.
- Micro-frontend architecture: Each app is independently developed and deployed.
- File-based routing: Pages are defined by files in each app's
src/pagesdirectory. - Module Federation: Share code and features between apps using OriginJS vite-plugin-federation.
- Monorepo structure: Managed with pnpm workspaces for efficient dependency management.
- Vue 3 & Vite: Fast, modern development experience.
apps/— Micro-frontend applications (host, nav, products, etc.)packages/— Shared packages (config, ui, etc.)public/— Static assetspnpm-workspace.yaml— pnpm workspace configuration
- pnpm (recommended)
- Node.js (v22+ recommended)
pnpm installpnpm run previewThis will start all micro-frontend apps in preview mode. Open the host app in your browser to see the architecture in action.
- Getting Started
- Architecture
- Development Guide
- Testing
- Deployment
- Contributing
- FAQ
- Project Structure
See each app's README for app-specific details.
Note: This repository is for learning and experimentation. For production, review security, performance, and deployment best practices.