Prerequisites
- macOS/Linux
- Windows
Node.js 20+
VS Code
Download VS Code - Recommended editor
Ollie Shop Store
You have created a Store in Ollie Shop
Step 1: Create a Hello World Component
In your terminal, use thecreate-ollie-shop command to triger the scaffolding of a new project with our Hello World component.
Create Your Project
Run the creation commandYou’ll be prompted for:
Project Namewhich will be the name on the folder.Store IDleave empty - you’ll be able to add this information at a later step.VTEX Account Namethe id of your store in in your ecommerce provider.Version IDleave empty - you’ll be able to add this information at a later step

Step 2: Install Dependencies & Preview.js VS Code Extension
After adding these basic configurations you’ll be able to access the folder.Install Preview.js Extension
Before making any changes to this component we recommend installing the Preview.js plugin in your IDE.If you are using VSCode you can search for Preview.js on the Extensions Marketplace (located on the left side menu).
- Open VS Code Extensions (Cmd/Ctrl + Shift + X)
- Search for
"Preview.js" - Install the extension by Zenc Labs

Preview.js provides instant visual feedback while developing React components, making development much faster.
Step 3: Develop Your Component
Now let’s build a checkout component using the Ollie Shop SDK.Open Component File
Open 
components/HelloWorld/index.tsx in VS CodeClick “Open HelloWorld in Preview.js” to see live preview
See Live Preview
Preview.js shows your component in real-time. Try modifying the code and see instant updates!

Step 4: Create Component in Admin Dashboard
Before deploying, you need to register your component in the admin dashboard.Navigate to Components
In the admin dashboard:
- Click “Components” in the sidebar
- Click “Create Component” or “Create Your First Component”

Configure Component
Fill in the component details:
- Name: Your component name (e.g., “My Custom Component”)
- Active: Toggle ON to enable the component
- Slot: Select where the component appears (e.g., “Cart Sidebar”)
- Version: Select your store version

Step 5: Connect Component ID to Your Code
Link your local component to the admin dashboard configuration.Include your Store settings
For a successful connection we must make sure that your are connected to the Store Id and your versionIn VS Code:

- Open your component in Preview.js
- Click Open Settings
- Paste your Store ID from the admin dashboard
- Paste your Version ID from the admin dashboard
- Click Save


Step 6: Build and Deploy
Time to deploy your component to production!Build Your Component
In Preview.js click the 3-dott on the upper right side and then click 

Settings, and click Save.

Deploy to Ollie Shop
Deploy the Component Using preview.js. Click again on the 3-dott icon and click 

Deploy and **include the Component Id again **and click Deploy .






