Connect to your store & start developing

Connect to your store

By default, ShopBase will look for a .env file with environment variables to connect to your store.

SBASE_STORE=your-store.onshopbase.com
SBASE_API_KEY=565ff7fe95eaf3205acffa2664cb6710

How to get your API key:

Steps:

  1. From your ShopBase admin, go to Public Themes.

  2. Manage versions.

  3. Choice a version.

  4. Copy API key in Theme credentials

Start developing

From the root of your theme project, run:

shopbase-theme serve

This command starts a development server. You will be able to see and interact with your new site in a development environment — local (on your computer, not published to the internet).

You can also specify a path that point to your theme project:

shopbase-theme serve ~/home/theme/example