Storefront Boilerplate is built on top of Nuxt, Vue and Tailwind CSS frameworks and uses TypeScript.
The Frameworks section provides a comprehensive list of links to documentation of all relevant technologies.
This guide will show you how to set up your local environment and test in preview and production-like modes.
Contact your SCAYLE Customer Success Manager to get your GitLab Access Token (OAUTH token).
The Gitlab Access Token provides read-only access via the command line using git to clone the storefront-boilerplate-nuxt-public repository. It doesn't provide any additional access rights or the ability to access the repository via the GitLab UI.
The source code of available SCAYLE Storefront Boilerplate release versions is distributed via the GitLab repository (storefront-boilerplate-nuxt-public).
The Storefront Boilerplate GitLab repository requires a GitLab Access Token.
Access the storefront-boilerplate-nuxt-public repository
Use the git clone command to checkout the latest source code of the Storefront Boilerplate using OAUTH via HTTPS :
For an in-depth explanation of the required environment variables, seeConfiguration.
To start up the shop application locally, create a local-only .env file.
This .env file will hold all the application's relevant credentials, secrets, and override values.
Storefront Boilerplate contains a .env.example file you can copy and populate with your credentials.
Environment variables defined in the .env.example file must have a {UNIQUE_IDENTIFIER} on a per shop base. They need to be duplicated for every shop that will be run from the project.
It is important to replace the placeholder of {UNIQUE_IDENTIFIER} to be equal to the key (shop.shopId or shop.locale) set of the shops.reduce function in config/storefront.ts.
We strongly recommend using the shopId as {UNIQUE_IDENTIFIER}!
RECOMMENDED:
if [shop.shopId] is used -> Overrideable environment variable: NUXT_STOREFRONT_SHOPS_1001_CHECKOUT_USER
if [shop.locale] is used -> Overrideable environment variable: NUXT_STOREFRONT_SHOPS_EN_US_CHECKOUT_USER
As the local HTTPS encryption is directly coupled to the HTTPS_KEY and HTTPS_CERT, simply remove or comment out the entries in your .env-file, like this:
This will run the generated Nuxt application from the .output/ directory, similar to how the application will be deployed on a production server. The only difference is that all relevant NUXT_ runtimeConfig override values are sourced from the local .env file.
As the Storefront Boilerplate uses frameworks like Nuxt and Vue as its foundation, most configuration and usage examples from its respective documentation can and should be used as additional references.
In this SCAYLE Academy crash course, we explore the technical foundations of SCAYLE's storefront, focusing on key aspects such as Nuxt, server-side rendering, and the steps needed to launch your storefront application. By the end, you'll be equipped to create a seamless and optimized user experience.