Lab - Set Up Catalyst and Makeswift
Lab - Set Up Catalyst and Makeswift
Lab - Set Up Catalyst and Makeswift
Note that the starter codebase for these labs picks up where the labs from Catalyst Core left off. If you have a local project as set up in these labs, you can skip this lab and simply start the dev server in your existing example project:
pnpm run dev
In this lab, you’ll set up a new Catalyst project with Makeswift enabled.
For following along in the code in future lessons, it’s also helpful to make sure you have a code editor, like VS Code, to open your Makeswift project once installed.
Node Version Manager (nvm) is an alternative way to install Node.js and allows you to install and use different versions.
With nvm installed, you can install a specific version:
nvm install 22
… and switch to the Node.js runtime of any version you have installed:
nvm use 22
Whether you use nvm or install Node.js via another method, make sure you are running a compatible version:
node -v
Once the provisioning process is begun, you will need to wait for the initial deployment to complete.

Proceed with the following steps after deployment is complete.
Note that you can return to the storefront overview page at any time by navigating to Channel Manager (or Channels) in your control panel and clicking on the Catalyst storefront channel.
Rather than start your custom code from scratch, you’ll be starting from a Catalyst codebase that already has certain boilerplate in place, in preparation for subsequent labs.
Note that we are running the installer with a specific gh-ref, rather than using the quick start command shown in the control panel.
The pnpm command is unrecognized.
In some environments where file permissions are highly restricted, you may need to prepend corepack to the use of pnpm commands (for example, corepack pnpm dlx create-next-app@latest …)
I receive interactive prompts.
The standard interactive flow for creating a new Next.js app will be initiated if the -e option isn’t recognized to provision from an existing “example” project. A brand new Next.js project isn’t what we’re after, so try manually cloning the starting state of the project repo:
You will eventually be presented with the BigCommerce device authorization URL - https://login.bigcommerce.com/device/connect - and a unique code.
With authorization completed, back at the command line, there will be new installation steps to complete.
The completion of the installation may take a few minutes. The installer will install the Catalyst code files into your local project, install all npm dependencies, and configure your store information and credentials.
http://localhost:3000)Provided that you chose to install sample data when creating your Catalyst storefront, you should see a fully populated storefront home page. Your local site should be nearly identical to your hosted preview environment, although as previously noted, there may be differences between the installed codebase and the deployed preview.

If you encounter an error while starting the dev server related to an issue finding a matching keyid, you may need to upgrade a pre-existing _corepack_version.
npm install -g corepack@latest
Unlike the values in .env.local, the values in .catalyst are only used by the CLI installer, not by the storefront application itself, and so these values do not correspond to any environment configuration that must be set up in deployment environments.
At various points while working in your local project, you may need to restart your dev server or clear the Next.js or Turborepo caches. Below is an example set of steps to do all three.
Make sure only to clear a given cache when necessary. It is generally not necessary to clear the Turborepo cache to make sure your storefront content is up to date.