Setting up your Wix app development environment

Module 47: How to Build a Wix App: Complete Developer Guide | Lesson 532 of 687 | 50 min read

By Michael Andrews, Wix SEO Expert UK

Before you can build a Wix app, you need a properly configured development environment. This lesson walks you through installing every tool you need, scaffolding your first project, understanding the file structure, connecting to a test site, and running your app locally. Whether you are building with Wix Blocks or Wix CLI, this foundation is essential.

Prerequisites: What You Need Before Starting

Installing Node.js and the Wix CLI

Step-by-step environment setup for Wix CLI development

# Install Node.js 18+ from https://nodejs.org
# Then install the Wix CLI:
npm install -g @wix/cli

# Verify installations
node --version    # Should show v18.x or higher
npm --version     # Should show 9.x or higher
wix --version     # Should show current CLI version

# Authenticate with your Wix Developer Centre account
wix login

# Verify authentication
wix whoami

Scaffolding Your First Wix App Project

The Wix CLI provides a scaffolding command that creates a complete app project with the correct file structure, configuration files, and starter code. This is the recommended way to start every new Wix app.

Create your first Wix app project

# Create a new Wix app project
wix app create

# Follow the prompts:
# > Choose a template: Full App
# > App name: my-seo-tool

# Navigate into the project
cd my-seo-tool

# Open in VS Code
code .

Understanding the Wix App Project Structure

A scaffolded Wix CLI app has a specific directory structure that you must understand. Each folder and file has a purpose, and placing code in the wrong location will cause build errors or unexpected behaviour.

Wix CLI app project file structure diagram showing src, backend, and dashboard directories
Wix CLI app project structure: separate directories for frontend widgets, dashboard pages, backend logic and configuration.

Connecting to a Wix Development Site

To test your app, you need to install it on a Wix site. The CLI provides a development mode that automatically installs your app on a test site and hot-reloads changes as you code.

Connect your app to a test site for development

# Start the local development server
wix dev

# The CLI will:
# 1. Build your app
# 2. Start a local dev server
# 3. Open a browser to select your test site
# 4. Install the app on the selected site
# 5. Watch for file changes and hot-reload
Development Workflow Tip: Keep a dedicated test site for app development. Install Wix Stores, Wix Bookings, and Wix Blog on this site so you can test integrations with these services. Name it something clear like "App Dev - [Your App Name]" so you can find it quickly.

Development Workflow Best Practices

Critical Setup Warning: Never edit files inside the .wix/ directory - these are auto-generated by the CLI and will be overwritten. If you need custom types, create them in src/public/ instead. Also ensure your Node.js version matches the requirement (18+) or you will encounter cryptic build errors.

This lesson on Setting up your Wix app development environment is part of Module 47: How to Build a Wix App: Complete Developer Guide in The Most Comprehensive Complete Wix SEO Course in the World (2026 Edition). Created by Michael Andrews, the UK's No.1 Wix SEO Expert with 14 years of hands-on experience, 750+ completed Wix SEO projects and 425+ verified five-star reviews.