Environment Setup and Tooling Beginner 12 min read

Setting Up Your Shopify Development Environment

Create a free Shopify Partners account and development store to practice writing Liquid code. Your essential first step before building themes.

Before you can start writing Liquid code, you need somewhere to run it. In this guide, we’ll set up a completely free development environment where you can experiment, break things, and learn without any risk to a real store.

Why You Need a Development Environment

Liquid code runs on Shopify’s servers, not in your browser. Unlike JavaScript, you can’t just open a console and start typing. You need:

  1. A Shopify store to run your code
  2. A theme to write your code in
  3. A way to edit that theme’s files

The good news? Shopify provides all of this for free through their Partners program.

Creating a Shopify Partners Account

The Shopify Partners program is free and gives you access to unlimited development stores. Here’s how to get started:

Step 1: Navigate to Partners

Go to partners.shopify.com and click Join now.

Step 2: Create Your Account

You can sign up with:

  • An email address
  • Your Google account
  • Your Apple ID

Fill in your details. Shopify will ask about your business, but don’t worry. You can select “I’m just exploring” or similar options. This won’t limit your access.

Step 3: Verify Your Email

Check your inbox for a verification email from Shopify and click the confirmation link.

Step 4: Explore the Dashboard

Once you’re in, you’ll see the Partners Dashboard. The key areas are:

  • Stores: Where you’ll create development stores
  • Apps: For building Shopify apps (we won’t need this for themes)
  • Themes: For managing themes you’re developing
  • Resources: Documentation and learning materials

Setting Up a Development Store

A development store is a free Shopify store for testing. It has almost all the features of a paid store, but it can’t process real transactions.

Creating Your First Dev Store

  1. From the Partners Dashboard, click Stores in the left sidebar
  2. Click Add store
  3. Select Create development store
  4. Choose Create a store to test and build

Configure Your Store

Give your store a name, something like “liquid-sandbox” or “my-dev-store”. This will become part of your store URL: your-store-name.myshopify.com.

Select your development purpose:

  • Choose Build a new theme if you’re following along with our tutorials

Click Create development store and wait a moment while Shopify sets everything up.

Adding Sample Data

An empty store isn’t very useful for testing Liquid. Let’s add some sample products:

  1. From your new store’s admin, go to SettingsPlan
  2. Look for Add sample data or go to ProductsImport
  3. You can also manually create a few products for testing

For quick sample data, you can also use Shopify’s demo products:

  1. Go to Online StoreThemes
  2. Click Customize on your current theme
  3. Many sections have options to show sample products when your store is empty

Tip: Create at least 3-5 products with images, descriptions, and prices. Include one product with a “compare at” price to test sale functionality.

Theme Setup for Running Liquid

Your development store comes with a theme pre-installed (usually Dawn, Shopify’s default theme). You have a few options:

Dawn is Shopify’s reference theme. It’s well-documented and follows best practices. For learning Liquid, it’s a great starting point because:

  • Clean, readable code
  • Good examples of common patterns
  • Extensive use of sections and blocks

Option 2: Build a Minimal Theme

If you want a blank slate without the complexity of a full theme, you can build a minimal theme from scratch. We cover this in a later lesson on Building a Minimal Shopify Theme.

Understanding Theme Structure

Before we dive into the code editor, here’s how theme files are organized:

theme/
├── assets/ # CSS, JS, images
├── config/ # Theme settings
├── layout/ # Base templates (theme.liquid)
├── locales/ # Translation files
├── sections/ # Modular, reusable components
├── snippets/ # Small reusable pieces
└── templates/ # Page templates (index, product, etc.)

The most important files for learning Liquid:

  • layout/theme.liquid - The master template that wraps everything
  • templates/*.json - Define which sections appear on each page type
  • sections/*.liquid - The actual Liquid code for components
  • snippets/*.liquid - Reusable pieces you can include anywhere

Working with the Code Editor

Shopify provides a built-in code editor right in your browser. No additional software required.

Accessing the Editor

  1. From your store admin, go to Online StoreThemes
  2. Find your theme and click the menu
  3. Select Edit code

You’ll see a file browser on the left and an editor on the right.

The files are organized into folders matching the structure we discussed:

  • Click a folder to expand it
  • Click a file to open it in the editor
  • Use Ctrl/Cmd + S to save changes

Creating New Files

To create a new file:

  1. Click Add a new [file type] at the bottom of the relevant folder
  2. Enter a filename (without the extension, Shopify adds it)
  3. Click Create

For example, to create a new snippet:

  1. Scroll to the Snippets folder
  2. Click Add a new snippet
  3. Name it (e.g., product-badge)
  4. You’ll get snippets/product-badge.liquid

Editing Liquid Files

The code editor supports:

  • Syntax highlighting for Liquid
  • Basic autocomplete
  • Line numbers
  • Search and replace (Ctrl/Cmd + F)

When you make changes:

  1. Edit the code
  2. Click Save (or use Ctrl/Cmd + S)
  3. Changes are applied immediately to your store

Important: Changes to a published theme are live immediately. For development, work on an unpublished theme copy.

Creating a Development Copy

To safely experiment:

  1. Go to Online StoreThemes
  2. Click on your current theme
  3. Select Duplicate
  4. Name it something like “Development” or “Testing”

Now you can edit the duplicate without affecting your live theme.

Previewing Your Changes

There are several ways to see your Liquid code in action:

Live Preview in Editor

When you’re in the code editor:

  1. Click the Preview button in the top bar
  2. A preview window opens in a new tab
  3. As you save changes, refresh the preview to see updates

Theme Preview URL

Every theme has a preview URL you can share or bookmark:

  1. Go to Online StoreThemes
  2. Click on your theme
  3. Select Preview

This opens your store as it would appear with that theme published.

Testing Different Pages

To test Liquid on different page types:

  1. Navigate to the page in your preview (product page, collection page, etc.)
  2. The URL will reflect the template being used
  3. Or use the preview selector in the code editor

Mobile and Device Testing

To check how your theme looks on different devices:

  1. In the theme preview, use your browser’s developer tools
  2. Toggle device mode (F12 → mobile icon)
  3. Or resize the browser window

The theme customizer also has device preview buttons (desktop, tablet, mobile) at the top of the screen.

Tips for Your Development Workflow

Keep Multiple Browser Tabs Open

I recommend having these tabs ready:

  1. Code editor - for writing Liquid
  2. Store preview - for seeing changes
  3. Shopify documentation - for reference

Use Browser Developer Tools

Press F12 to open developer tools:

  • Elements: Inspect the HTML your Liquid generates
  • Console: Check for JavaScript errors
  • Network: See what assets are loading

Save Often

The code editor doesn’t auto-save. Get in the habit of pressing Ctrl/Cmd + S frequently.

Read the Error Messages

When Liquid has a syntax error, Shopify shows helpful messages:

  • Line numbers where errors occurred
  • Description of what went wrong
  • Suggestions for fixing the issue

What’s Next?

You now have a fully functional Shopify development environment! Here’s where to go from here:

  • Build a sandbox theme: Create a minimal theme for experimenting
  • Go local: Set up local development with Shopify CLI for a more powerful workflow
  • Start coding: Continue with the next lessons to learn Liquid

Your development store never expires, and you can create as many as you need. Happy coding!

Finished this lesson?

Mark it complete to track your progress.

Discussion

Loading comments...