Znode 10 Development Environment Overview

TABLE OF CONTENTS


Overview

This guide gives Znode implementation partners a single, end-to-end view of how to set up a Znode 10 development environment. It brings together the system requirements, tenant and sandbox onboarding, Znode CLI setup, and the local setup of the Webstore (with Page Builder), the API, and the Admin application.

It is a consolidated, partner-friendly rewrite of articles from the Developer QuickStart Guides, API Development, Storefront Development, and Admin Customization folders on the Znode support portal. Always check the source articles linked in each section for the latest updates.

A Znode 10 implementation is made up of three main applications: the Webstore (an open-source React/Next.js storefront managed in an NX monorepo together with Page Builder), the API (.NET 8, with V1 and V2 projects plus an optional Custom API SDK), and the Admin console (.NET). For most tenant projects, partners work locally on the Webstore and Custom API SDKs and connect them to Znode-hosted Admin and API instances.

The Znode CLI is the central tool in this workflow. It downloads the Webstore SDK and Custom API template, keeps them up to date with new releases, and deploys custom builds to the Znode-managed Azure Kubernetes Service (AKS) environments assigned to your project.

The table in Environment at a Glance shows how the pieces fit together and which section of this guide covers each one.

Prerequisites

  • Tenant onboarding with Znode completed, or trial sandbox access requested from Znode Support or your Znode representative.
  • A Znode CLI token (one per developer seat) and NuGet credentials (one per project), both issued by Znode Support.
  • Non-production Admin Console credentials for your tenant or the sandbox.
  • A workstation that meets the Znode 10 system requirements (see Znode System Requirements).
  • Access to your project's Git repository (and, for API or Admin source work, permission to the relevant Znode repositories).

Environment at a Glance

ComponentTechnologyTypical local setupCovered in
Znode CLI.NET 8 global toolInstalled from the Znode NuGet feed; connects with your CLI tokenHow to Install and Set Up Znode CLI
Webstore + Page BuilderNode.js, Next.js, React, Tailwind CSS, NX, RedisDownloaded with znode setup; run with npx nx devWebstore Development & Page Builder Setup
Custom API SDK.NET 8Downloaded with znode setup; deployed with znode deployHow to Install and Set Up Znode CLI
API (V1 / V2).NET 8, SQL Server, MongoDB, Elasticsearch, Redis, RabbitMQCloned from repository; run in Visual StudioAPI – Setup, Installation & Configuration
Admin.NET, Visual StudioHosted for tenants; can be cloned and run locallyAdmin Setup, Installation & Configuration

Tip: Most partner projects only need the CLI, the Webstore SDK and the Custom API SDK running locally. The hosted Admin and API instances for your non-production environment are used as the back end.

Source article: Environment at a Glance

Znode System Requirements

These software versions apply to Znode 10.x and later. Missing or outdated software is a common cause of installation errors and poor local performance, so confirm them before you start.

SoftwareRequired VersionUsed For
.NET Core8Znode CLI, API and Custom API SDK
Visual Studio2022 or laterAPI, Custom API and Admin development
Docker (or IIS Express with Visual Studio)LatestRunning services locally; required for znode deploy
Node.js20.0.0 or higherWebstore SDK and Page Builder
VS CodeLatestWebstore development

Confirm the installed versions from a terminal:

dotnet --version
node --version
docker --version

Important: The Webstore setup article lists Node.js 18 as a minimum, but the system requirements and CLI guide require Node.js 20.0.0 or higher. Use Node.js 20+ to avoid build issues.

Source article: Znode System Requirements

Getting Started With a Znode 10 Tenant

Once your tenant is onboarded, follow this sequence to get a working local environment connected to your non-production instance.

  1. Set up the NuGet source and CLIusing the credentials issued by Znode Support:
    • Source: https://nuget.znode.com/nuget
    • Username and password: as provided by Znode Support
  2. Connect the CLI with your developer access token (see How to Install and Set Up Znode CLI). If you do not have a token, contact Znode Support.
  3. Download the SDKs with znode setup, then check that the Webstore and Page Builder .env files point to your non-production gateway and API.
  4. Run the Webstore and Page Builder locally.Both must be running at the same time to test the Webstore.

    npx nx run webstore:dev
    npx nx run page-builder:dev

  5. Commit the downloaded source to your own Git repository so the code can be maintained and versioned from day one.
  6. Sign in to the Admin Console with the non-production credentials from Znode Support and configure your store and catalog.
  7. (Optional) Set up CI/CD. For GitHub-based automation, ask Znode Support for the Znode 10 – Znode CLI GitHub Action Guide.

Customization Paths

AreaWhat you can doReference
WebstoreModify the open-source React storefront: themes, components and pagesWebstore Customization Guide
Custom APIsCreate new APIs or extend existing behavior using the Custom API SDKAPI Customization Guide
ERP connectorsIntegrate a third-party ERP through Commerce ConnectorLegacy ERP Connector Setup
AdminExtend the Admin applicationAdmin Customization

Logging, Debugging and Deployment

  • Add logging to custom applications so issues and performance can be traced; ask Znode Support for the Logging in Custom Application guide.
  • To test local services from outside your machine (for example, webhooks), expose localhost through a Cloudflare tunnel.
  • Use znode deploy to deploy custom Webstore and API builds to your assigned non-production instance. Production deployments follow the guidelines provided by Znode Support.
  • Run znode get-updated-copy to pull the latest Webstore and Custom API SDK changes from the release repository.

Source article: Getting Started with a Znode 10 Tenant

Trial Sandbox Access and Getting Started With Znode 10

The trial sandbox lets developers explore Znode 10 before (or alongside) a tenant project. Request sandbox credentials from Znode Support or your Znode representative; you will receive developer tokens, NuGet credentials and Admin Console access.

  1. Install and configure the Znode CLI, adding the NuGet source https://nuget.znode.com/nuget with your sandbox credentials.
  2. Connect the CLI with the access token supplied for the sandbox and run znode setup to download the SDKs.
  3. Start the Webstore and Page Builder locally (both at the same time). By default, the .env files already point to the Znode10-Sandbox environment.
  4. Sign in to the sandbox Admin Console and set up your store and catalog:
    • URL: https://admin-z10-sandbox.znodestore.com/
    • Username and password: as provided by Znode Support

Important: The public sandbox is a shared space for learning and experimentation. It does not support deployments and must not be used as a substitute for production or a dedicated environment.

Source article: Trial Sandbox Access and Getting Started with Znode 10

How to Install and Set Up Znode CLI

The Znode CLI downloads the Znode SDK projects and deploys custom builds to the Znode-managed AKS cluster. It requires .NET 8; Docker Desktop is optional for downloading SDKs but required for deployments.

Access You Need

CredentialScopeNotes
CLI tokenPer developer seatUnique to each user. Valid for one year; CLI sessions time out after six hours. Can be limited to the Webstore SDK, Custom API SDK, or both, and to specific environments (for example DEV, QA, PROD).
NuGet credentialsPer projectGrants access to the Znode NuGet package repository.

Install the CLI

dotnet nuget add source "https://nuget.znode.com/nuget" -n "NugetZnode10xCLI" -u "<username>" -p "<password>" --store-password-in-clear-text
dotnet nuget list source
dotnet tool install Znode.CLI -g
dotnet tool update Znode.CLI -g # later, to upgrade

Connect and Download the SDKs

znode connect <token>
znode connect info
znode setup # latest release
znode setup --releaseVersion v10.12.1.0 # a specific release

Run znode setup inside a dedicated folder. Release versions can be given as 10.12.1.0 or V10.12.1.0; re-running setup does not overwrite existing source files.

FolderValid?Reason
D:\Znode10CLIYesDedicated folder, no spaces
D:\dev\znode-10YesDedicated folder, no spaces
C:\ or D:\NoDrive root is not allowed
D:\dev folder\new folderNoPath contains spaces

Deploy and Update

Before your first deployment, check Docker's storage driver. If the output shows io.containerd.snapshotter.v1, set the environment variable BUILDX_NO_DEFAULT_ATTESTATIONS=1 to avoid a known deploy failure. If it shows the overlay2 driver, no action is needed.

docker info --format '{{.DriverStatus}}'
znode deploy WebStoreSDK DEV
znode deploy CustomAPISDK DEV
znode get-updated-copy

The deploy command validates your token permissions, builds the solution locally, tags a timestamped image, pushes it to the container registry and deploys it to AKS. CLI logs are written to %UserProfile%\AppData\Local\ZnodeCLILogs\ on Windows.

Common Fixes

ProblemFix
znode connect info shows no setup detailsThe token session has expired, so reconnect and run znode setup again.
CLI install failsRemove and re-add the NuGet source with valid credentials (dotnet nuget remove source <SourceName>).
Docker/WSL using too many resourcesRun wsl --shutdown, then restart Docker Desktop.

Source article: How to Install and Set Up Znode CLI

Webstore Development & Page Builder Setup

The Webstore and Page Builder live in a single NX monorepo built on Node.js, Next.js, React and Tailwind CSS, with Redis for caching. The CLI installs everything you need; VS Code is the recommended editor, with optional extensions such as ESLint, Prettier, SonarLint and Code Spell Checker.

  1. Download the Webstore SDK with the Znode CLI (see How to Install and Set Up Znode CLI).
  2. Open the project root (for example webstore-platform) in VS Code and run all npm/nx commands from there.
  3. Install dependencies with npm install.
  4. Update the pre-generated .env files in apps/webstore and apps/page-builder with your environment's values.
  5. Start the Webstore and Page Builder in separate terminals.
VariablePurposeIf it is wrong
API_URLBase URL used to build every back-end API requestAPI calls fail; the app cannot reach services
API_DOMAINDomain registered/whitelisted on the API; combined with API_KEY to generate the auth tokenAuthentication fails; requests are rejected
API_V2_DOMAINEndpoint for version 2 of the back-end APIV2 calls fail
API_KEYKey that authorizes API requestsRequests are unauthorized

npm install
npx nx dev webstore # http://localhost:3000
npx nx dev page-builder
npx nx start webstore # run a production build locally

To preview and edit a section in Page Builder, open a URL such as:

http://localhost:3000/en-US/page-builder?url=header&theme=base&publishState=preview&themeCode=base&storeCode=MaxwellsHardware&pageCode=Header

See Page Builder Changes in Real Time

  • In page-builder/.env set IS_DEBUGGING=true.
  • In webstore/.env set IS_DEBUGGING=true and ENABLE_CACHE=false.
  • To show the Publish button, set ENABLE_EDIT_WIDGET: true in the VISUAL_EDITOR_SETTINGS object of packages/page-builder/src/constants/visual-editor.ts.

Important: Routing and preview only work if a matching domain entry exists in the Znode domain table for the domain you are using.

Source article: Webstore Development & Page Builder Setup

API – Setup, Installation & Configuration

Use this setup when you need to run the Znode 10 API source locally (repository access is required). Install Visual Studio 2022 or later; CodeMaid and Visual Studio Spell Checker are useful optional extensions.

  1. Clone the znode10-api-migration repository and open the .sln file in the Znode.Multifront folder.
  2. Add the NuGet package sources under Tools > NuGet Package Manager > Package Manager Settings > Package Sources:
    • Znode NuGet – https://nuget.znode.com/nuget
    • ZnodeDevQaGit – https://nuget.pkg.github.com/mrrsoft/index.json
    • Credentials: as provided by Znode Support
  3. Configure startup projects: right-click Znode.Engine.Api.csproj, choose Configure Startup Projects, and set both Znode.Engine.Api and Znode.Engine.ApiV2 to Start.
  4. Update appsettings.json in both projects with your environment's URIs (see table).
  5. Replace the connection strings with your local SQL Server and MongoDB details.
  6. Press F5 to run both projects, then test endpoints with Postman using environment variables such as {{baseUrl}} and {{token}}.
SettingWhat it points to
AdminWebsiteUrlAdmin application for your environment
ZnodeApiGatewayAPI gateway
PluginApiRootUriPlugin server
CustomAPIRootUriCustom API instance
ZnodeApiRootUriAPI V1
ZnodeApiV2RootUriAPI V2 (locally, for example https://localhost:54546)
ElasticSearchRootUriElasticsearch service (for example http://localhost:9200)

Connection strings to update: ZnodeECommerceDB, Znode_Entities, ZnodePublish_Entities, ZnodeKlaviyo_Entities, ZnodeFramework_Entities, HangfireConnection, ZnodeRecommendationDB, ZnodeRecommendation_Entities and ZnodeMongoDBForLog.

Server=localhost;Initial Catalog=YourDBName;User ID=your_username;Password=your_password;TrustServerCertificate=True;
mongodb://localhost:27017/Znode_Log

Note: The source article shows QA URIs as example values. Replace them with the endpoints for your own environment, and keep the V1 and V2 settings in sync.

Source article: API – Setup, Installation & Configuration

Admin Setup, Installation & Configuration

Tenants normally use the hosted Admin Console. Set the Admin up locally only when you are customizing it (repository access is required).

  1. Install Visual Studio; CodeMaid, Visual Studio Spell Checker and Web Compiler 2022+ are useful optional extensions.
  2. Clone the znode10-admin-migration repository and open the Admin .sln file.
  3. Add the Znode NuGet package source (https://nuget.znode.com/nuget) with credentials from Znode Support.
  4. Right-click Znode.Engine.Admin.csproj and select Set as Startup Project.
  5. Point appsettings.jsonto your local services, then rebuild. Repeat for each microservice.

    "ZnodeApiRootUri": "https://localhost:44375",
    "ZnodeApiGateway": "https://localhost:44330",
    "ZnodeAdminUri": "https://localhost:44392"

Source article: Admin Setup, Installation & Configuration

Shared Services: Caching and Event Bus

The API (V1 and V2) and Admin applications share the same Caching and EventBus sections in appsettings.json. Configure them consistently across every application, then save and restart.

Caching

KeyExample valueNotes
TypeZnodeRedisCacheOr ZnodeSqlCache / InMemory. Redis is recommended for distributed setups.
AbsoluteExpiration / SlidingExpiration30 / 20Cache lifetimes
SqlCacheConnectionStringSQL connection stringUsed with ZnodeSqlCache
CacheSchemaName / CacheTableNamedbo / SQLCacheUsed with ZnodeSqlCache
DeletionInterval30Clean-up interval for SQL cache
RedisCacheConnectionStringlocalhost:6379Used with ZnodeRedisCache
RedisCacheInstanceNameDevInstance prefix
InMemoryCacheKeysSiteConfigKeys kept in memory

Event Bus (RabbitMQ)

The EventBus section in appsettings.json:

"EventBus": {
 "MessageBrokerService": "RabbitMQ",
 "RabbitMQConnectionString": "amqp://guest:guest@localhost:5672",
 "RabbitMQManagementUrl": "http://localhost:15672",
 "RabbitMQUserName": "guest",
 "RabbitMQPassword": "guest",
 "QueueName": "base-cache-queue",
 "RetryCount": "2",
 "RetryInterval": "200",
 "EventRetry": "true"
}

Run RabbitMQ locally with the rabbitmq:management Docker image (or install it from rabbitmq.com). The management UI is at http://localhost:15672 (default login guest / guest). ServiceBusConnectionString is only needed if you use Azure Service Bus instead.

Tip: Use the default guest credentials only on a local machine. Shared or hosted environments should use their own broker credentials.

Source article: Shared Services: Caching and Event Bus

Frequently Asked Questions

Q: Do I need to run the API and Admin locally for a tenant project?

Usually not. Most partner work happens in the Webstore and Custom API SDKs, connected to your hosted non-production Admin and API. Local API and Admin setup is only needed when you have repository access and are changing those applications.

Q: Why does znode setup fail or download into the wrong place?

Run it from a dedicated folder that is not a drive root and has no spaces in its path (for example D:\Znode10CLI). Also check that your CLI session has not expired by running znode connect info.

Q: Page Builder changes are not showing in the Webstore. What should I check?

Make sure both apps are running, IS_DEBUGGING=true is set in both .env files, ENABLE_CACHE=false is set for the Webstore, and a matching domain entry exists in the Znode domain table.

Q: Can I deploy to the trial sandbox?

No. The public sandbox is shared and does not support deployments. Use znode deploy only against the non-production environments assigned to your tenant.

ArticleLink
Environment at a Glancehttps://support.znode.com/support/solutions/43000373995
Znode System Requirementshttps://support.znode.com/support/solutions/articles/43000757132-znode-system-requirements
Getting Started with a Znode 10 Tenanthttps://support.znode.com/support/solutions/articles/43000760880-getting-started-with-a-znode-10-tenant
Trial Sandbox Access and Getting Started with Znode 10https://support.znode.com/support/solutions/articles/43000765662-trial-sandbox-access-and-getting-started-with-znode-10
How to Install and Set Up Znode CLIhttps://support.znode.com/support/solutions/articles/43000760827-how-to-install-and-set-up-znode-cli
Webstore Development & Page Builder Setuphttps://support.znode.com/support/solutions/articles/43000760892-webstore-development-page-builder-setup-guide
API – Setup, Installation & Configurationhttps://support.znode.com/support/solutions/articles/43000761221-api-setup-guide-installation-configuration-
Admin Setup, Installation & Configurationhttps://support.znode.com/support/solutions/articles/43000761482-admin-setup-installation-configuration
Shared Services: Caching and Event Bushttps://support.znode.com/support/solutions/articles/43000761221-api-setup-guide-installation-configuration-

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.