hubble PWA Docs
PWA
Demo
Website
Github
PWA
Demo
Website
Github
  • What is hubble PWA?
    • Overview
    • Techstack
    • Requirements
    • Installation
      • Prerequisites
      • Installation
      • Build modes
        • Development
        • Production
    • Migration Guide: Upgrading to Hubble PWA v3.0
    • Roadmap
    • Contact
    • Troubleshooting
  • Architecture

    • Shop Connector
    • Layer Override System
    • Pages
    • Preinstalled Modules
    • User Session
    • Layouts
    • Components
  • Configuration
  • Theming

    • Default Theme
  • Shopware 6
    • How to set up Shopware 6 to work with hubble PWA
    • Shopware 6 Plugins
    • Shopware 6 Emotionworlds
    • i18n
    • Trade-offs
  • Module Development
    • Contribution Guide PWA
    • Tests
    • Hubble Coding Guidelines for Contributors
    • API Clients

Installation

Prerequisites

This guide focuses on installing hubble PWA as a Nuxt.js module only, so before moving on, make sure you meet the requirements first.

Installation

  1. Create a new Nuxt 4 Project
npx nuxi init nuxt-app
cd nuxt-app
npm install

# Resolve pinia dependency issue 
npm i pinia -f
  1. Install the hubble Nuxt module
npm i @hubblecommerce/hubble
  1. Add the module to nuxt.config.ts
export default defineNuxtConfig({
    modules: [
        '@hubblecommerce/hubble'
    ]
})
  1. Create a .env file in project root and fill your Shopware 6 credentials
PLATFORM_BASE_URL       = 'https://your-shopware-store.com'
API_BASE_URL            = 'https://your-shopware-store.com/store-api'
API_SW_ACCESS_KEY       = 'your-sales-channel-access-key'
API_CLIENT_ID           = 'your-client-id'
API_CLIENT_SECRET       = 'your-client-secret'

Tips

Read more about where to get the credentials in the supported e-commerce platforms section.

Build modes

Development

npm run dev

Production

npm run build
node .output/server/index.mjs
Prev
Requirements
Next
Migration Guide: Upgrading to Hubble PWA v3.0