This is a demo application showcasing the HaexHub SDK integration with Nuxt 4.
- Database operations (CREATE TABLE, INSERT, SELECT)
- Table name prefixing using
getTableName() - High-level SDK API (
client.query(),client.execute()) - Nuxt UI components for a polished interface
- Vue 3 Composition API with
<script setup>
Install dependencies:
pnpm installThis is the proper way to test the extension with full HaexHub integration:
-
Start the dev server:
pnpm ext:dev
-
Open HaexHub and load the dev extension:
- Click on "Extensions" or "Add Extension"
- Select "Load Dev Extension"
- Choose this project directory
The extension will now run inside HaexHub with full access to the SDK APIs.
For UI development without HaexHub:
pnpm devNote: Database operations will not work in standalone mode as they require HaexHub's runtime environment.
Build and sign the extension for production:
pnpm ext:buildThis creates a signed .haextension file that can be installed in HaexHub.
haex-demo-nuxt/
├── app/
│ ├── pages/
│ │ └── index.vue # Main demo page
│ └── app.vue # Root component
├── haextension/
│ ├── manifest.json # Extension metadata
│ ├── public.key # Public signing key
│ ├── private.key # Private signing key (not in git)
│ └── icon.svg # Extension icon
├── haextension.config.json # Extension dev configuration
└── nuxt.config.ts # Nuxt configuration