Last update:
March 22, 2024
Getting Started¶
In this guide, we will explore the necessary steps to get started with the Virto Commerce platform.
Prerequisites¶
-
Install latest version of vc-platform 3.x.
-
Install the xAPI module.
- Install the Profile xAPI module module.
- Install Node v.16.X
- Install yarn package manager.
Install vc-storefront¶
To install vc-storefront:
- Clone vc-storefront to a local folder.
- Open the appsettings.json file in a text editor.
-
In the Endpoint section, replace Url, UserName, Password with correct path and credentials for Virto Commerce Platform:
Run vc-storefront¶
To run the vc-storefront application, execute the following commands:
# change the current directory
cd C:\vc-storefront\VirtoCommerce.Storefront
# build and run storefront application
dotnet run
# In future, if you don't need to rebuild you can use that
dotnet run --no-build
Setup Сurrent Theme¶
To set up the current theme for your storefront, execute the following commands:
# Clone repo into the folder where storefront is installed
# `store-code` can be found in the platform running locally. More -> Shops -> Shop Name -> Code
git clone https://github.com/VirtoCommerce/vc-theme-b2b-vue.git "C:\vc-storefront\VirtoCommerce.Storefront\wwwroot\cms-content\themes\{store-code}\default"
# Change the current directory
cd C:\vc-storefront\VirtoCommerce.Storefront\VirtoCommerce.Storefront\wwwroot\cms-content\themes\{store-code}\default
# install dependencies
yarn install
For Visual Studio Code Users¶
If you're using Visual Studio Code:
- Setup recommended extensions.
- Configure Volar Takeover mode.
Development Workflow¶
Let's explore the development workflow and various commands you can use during development.
Compile and Hot-Reload for Development¶
- Open the .env file in a text editor.
-
Change APP_BACKEND_URL to the correct endpoint to
vc-storefront
: -
Run command:
yarn dev
oryarn dev-expose
. - Follow the link in the terminal