Purpose
List the steps to run a PageBuilder instance locally.
Purpose
List the steps to run a PageBuilder instance locally.
Audience
Developers learning to work with PageBuilder.
To start using PageBuilder Engine, you must use the Arc Fusion Command-Line Interface (CLI), which enables you to perform the following tasks:
Ensure you have the following prerequisites before you run PageBuilder locally:
Ensure you have the following skills:
Ensure you have the following system requirements:
5.2
or later. To verify the version, take the following steps:
npm -v
10.7.0
Access to an Arc XP Organization requires a signed contract with Arc XP. After becoming a customer, you get the credentials and settings to use Arc XP’s full feature set.
To connect to an Arc XP Organization, you must configure access tokens and website information in your local development environment while using the Arc Fusion CLI. However, you can use Arc Fusion CLI without connecting it to an Arc XP organization.
The Arc Fusion CLI works in the following scenarios:
Running PageBuilder Locally without Arc XP Credentials (Available for anyone).
Running PageBuilder Locally with Arc XP Credentials (Available for onboarded Arc XP customers).
To run PageBuilder locally, complete the following steps:
In the location of your choice, create the directory for your local PageBuilder instance:
mkdir <directory-name>
Enter the directory you created:
cd <directory-name>
Install Arc Fusion CLI:
npx @arc-fusion/cli init
Type y
to grant permission to install @arc-fusion/cli
packages
The initialization process continues and completes.
Start the PageBuilder Engine and PageBuilder Editor local server:
npx fusion start
The project builds and runs the server.
In your browser, open the following URL: localhost/pagebuilder/pages
A PageBuilder page displays:
Figure 1. PageBuilder Editor
The PageBuilder Engine homepage is empty because you have not created any pages. Complete the Creating with PageBuilder process to populate the PageBuilder Engine homepage.
Figure 2 shows the Site Service Configurations error message.
Figure 2. Site Service Configurations Error in PageBuilder Editor
To stop the PageBuilder Engine on your local machine, run:
npx fusion down
To verify that all the PageBuilder Engine services stopped, run:
docker ps