Install the UI Toolkit
You can install the Storefront Toolkit on either MacOS or on Windows 10.
The Toolkit has certain prerequisite programs that must be in place before you can install it. The Toolkit installation itself is performed from the command line.
A video tutorial of an installation is available here.
Prerequisites
Before you can install and use the Storefront Toolkit, you must install certain third-party programs as prerequisites. These include the Node.js environment and the node-sass library.
For Node.js installation, we recommend that you use the nvm application. This application is a version manager for node.js, designed to be installed per-user, and invoked per-shell. The nvm application works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on Unix, MacOS, and Windows WSL.
To install nvm, run this command at the command line:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
After nvm is installed, you can continue with the prerequisites listed in the table below:
For MacOS | For Windows 10 |
---|---|
|
|
Install the Toolkit
After you install the necessary third-party programs, you can install the Storefront Toolkit through the command line.
To install the Toolkit
- Open a command-line window.
- Type
npm install -g @appdirect/sfb-toolkit
and press Enter. Wait for the command to finish.
If you are upgrading your Toolkit to version 4.0 from an earlier version, you may receive warnings and error messages when you start it. For instructions on how to resolve these warnings and errors, see Upgrading to 4.0 and later.
Set up your workspace
After the Toolkit has been installed, you can use its setup command to create the workspace. This folder structure will contain a sample theme, which you can use as a starting point for your own theme.
During this setup you must specify the marketplace to which the theme is linked. This enables you to draw on that marketplace for data during theme development.
To set up a theme
- Go to the directory to where you want to store your theme content.
- Type
sfb-toolkit setup themeFolderName
and press Enter. You are prompted to agree to the terms of the license agreement, ThethemeFolderName
is the top-level folder for your workspace. It contains a themes folder where your themes are stored. - Type
agree
and press Enter. You are prompted to select one of the standard marketplace themes as a starting point for your first theme. The choices are classic and Plaza. - Use the arrow keys to highlight the base theme you want, and press Enter.
- Type a theme name and press Enter. A folder with the specified name is created on your computer. It includes all of the files required to create a custom theme. You are prompted to type the marketplace path.
- Type your full marketplace URL.
Press Enter. You can now import data from the specified marketplace when you Use the developer toolbar in your browser.important
Ensure that you include
https://
in the URL.
Congratulations! You have successfully installed the Storefront Toolkit, continue on to the next section to learn how to use the Toolkit.
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!