Store Framework is a front-end development framework designed to enhance and simplify the creation of ecommerce websites within VTEX. Built on the VTEX IO development platform and React technology, the framework offers native storefront components in JSON format.
Store Framework relies on the following pillars:
Aspect | Description |
---|---|
Composability | Assemble pre-built and custom components to create a storefront tailored to specific business needs. |
Flexibility and customization | Adapt storefronts to unique design requirements and functional preferences. |
Workspaces | Create multiple store versions and test them to guarantee reliability and deploy changes safely. |
A/B tests | Experiment with different versions of a storefront to enhance user experience and performance. |
VTEX IO cloud infrastructure | Develop in a fully managed auto-scalable infrastructure. |
Store Framework architecture
The diagram shows a typical Store Framework architectural flow, which includes the following components:
- Codebase: The source code for Store Framework and VTEX IO apps is cloud-native.
- Build process: The process of converting the source code into a deployable application, based on VTEX IO Builders.
- Deployment: The process of deploying the application to a production environment.
- Business user touchpoint: where administrative users interact with storefront settings, on CMS and Site Editor.
- Customer touchpoint: where customers interact with the storefront, usually on a webstore or PWA.
Developer Tools
Developers using Store Framework can count on a set of tools:
- VTEX IO CLI: Interact with the VTEX platform using our command-line tool.
- A/B tests: Compare traffic between two workspaces.
- Edition App: Streamline your setup by installing a preset bundle of settings, policies, backend and frontend apps.
- Development workspaces: Test and preview your code in workspaces dedicated to development, without affecting the live store.
- Production workspaces: Run tests and quality assurance in a workspace that is ready to handle live traffic.
- Builders: Connect your apps to our services quickly using VTEX IO Builders.
Technologies
To work with this framework, you should be familiar with the following technologies:
Quickstart
This quickstart guide is a brief introduction to the VTEX Store Framework. For more detailed step-by-step documentation, check Store Framework - Getting started.
1. Initial settings
-
Install VTEX IO CLI. You will need it to run commands in the following steps.
-
Log in to your VTEX account:
_10vtex login {accountName} -
Open a support ticket to set up your account’s Edition app to
vtex.edition-store@3.x
or higher. Refer to the Edition App article to identify the most suitable version for your scenario. -
Install Intelligent Search (if the account’s Edition app is
vtex.edition-store@4.x
or lower) and integrate it with your store’s catalog according to this guide.
2. Setting up the project
-
Navigate to a local file directory where you want our boilerplate store theme to be saved:
_10cd {folderName} -
Start a new project:
_10vtex init -
Select
store
by navigating with your arrow keys and pressingEnter
. When prompted to confirm, typey
to clone theminimum-boilerplate-theme
to your folder. -
Create a workspace:
_10vtex use {workspaceName} -
Navigate to the
minimum-boilerplate-theme
directory:_10cd minimum-boilerplate-theme -
Link your local repository with the workspace:
_10vtex link -
Access your workspace:
_10vtex browse
Now you can make changes to the local repository and test them live in the workspace without altering the store's final public version.