Congratulations on installing your ShopBite Storefront! This guide will walk you through the first steps.
Ensure that the following prerequisites are met:
A detailed guide for Nuxt installation can be found in the official Nuxt Documentation.
Run the following command and navigate through the questions. Choose the default settings to create a new Nuxt application:
pnpm create nuxt@latest
Install the ShopBite Storefront module:
pnpm add @shopbite-de/storefront
Create the following files with the appropriate content:
.env File:
# .env
NUXT_PUBLIC_APP_ENV="development"
NUXT_PUBLIC_STORE_URL="http://localhost:3000"
NUXT_PUBLIC_SHOPWARE_ENDPOINT="https://my-shopware-instance.de/store-api/"
NUXT_PUBLIC_SHOPWARE_ACCESS_TOKEN="SALES-CHANNEL-ACCESS-TOKEN"
NUXT_PUBLIC_SITE_COUNTRY_ID="YOUR-DEFAULT-COUNTRY-ID"
nuxt.config.ts File:
// nuxt.config.ts
export default defineNuxtConfig({
extends: ['@shopbite-de/storefront'],
compatibilityDate: '2025-07-15',
devtools: { enabled: true }
})
app/assets/css/main.css File:
/* app/assets/css/main.css */
@import "@shopbite-de/storefront/app/assets/css/main.css";
Your package.json should look something like this:
{
"name": "storefront",
"type": "module",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@shopbite-de/storefront": "^1.6.0",
"nuxt": "^4.2.2",
"vue": "^3.5.26",
"vue-router": "^4.6.4"
}
}
This should be enough to start the default ShopBite Storefront:
pnpm run build
node ./output/server/index.mjs
For development, you need additional packages:
pnpm add -D @nuxt/test-utils @nuxt/eslint
After that, you can start the development server:
pnpm run dev