Skip to main content
This guide shows you how to manually integrate a frontend framework with Mizu without using the CLI templates.

Prerequisites

  • Go 1.22+
  • Node.js 18+
  • Existing Mizu project or create new one

React + Vite Setup

1. Create Vite Project

2. Configure Vite

3. Add Frontend Integration

4. Update package.json

5. Create Makefile (Optional)

Vue + Vite Setup

Follow same steps as React, but:
Same Vite config, same backend setup.

HTMX Setup

1. Create Directory Structure

2. Create Go Embed Files

3. Setup App

4. Create Templates

Next.js Setup

1. Create Next.js App

2. Configure for Static Export

3. Backend Setup

Common Additions

Add Router

Add State Management

Add UI Library

Troubleshooting

HMR Not Working

Add to Vite config:

Assets Not Loading

Ensure base URL is correct:

Build Not Found

Check embed path matches build output:

Next Steps

Templates

Use ready-made templates instead

Configuration

All configuration options

Development

Development workflow