Quick Start Script for ArcGIS Experience Builder
If you develop with ArcGIS Experience Builder, you know that getting started is a multi-step process. It would be nice to get started a little more quickly.
Here’s a simple Windows batch script that will do that. It installs the dependencies, if necessary, and then starts up the Experience Builder server.
if exist ArcGISExperienceBuilder/client/node_modules\ (
cmd /c start powershell -noexit -command "cd ArcGISExperienceBuilder\client; npm start"
cmd /c start powershell -noexit -command "cd ArcGISExperienceBuilder\server; npm start"
) else (
cmd /c start powershell -noexit -command "cd ArcGISExperienceBuilder\client; npm ci; npm start"
cmd /c start powershell -noexit -command "cd ArcGISExperienceBuilder\server; npm ci; npm start"
)
start http://localhost:3000
Usage:
- Download the Experience Builder developer edition zip file.
- Extract the Zip files. I use 7-zip and just use the “Extract here” button - this will create a folder called
ArcGISExperienceBuilder
at the same level as the zip file. - Create a file called
LaunchExB.cmd
. - Right-click the file and click
Edit
. Copy/paste the code above. - Double-click the file.
Note: make sure the .cmd
file you create is that the same level (siblings) as the ArcGISExperienceBuilder
folder.
Written by
Gavin Rehkemper
on
Subscribe
I periodically write about technology, maps, open data, and other software topics. To get updates about new posts: