Building your first add-on
Last updated
Was this helpful?
Last updated
Was this helpful?
To help you get started with building an add-on using JavaScript we've created a sample project which you can clone down from GitHub. This project has all the lifecycle hooks set up and includes the Squirrel Helper Library for you.
To be able to view the add-on in Squirrel you need to be running the add-on in a web server. If you do not have a web server on your machine there are a number of options:
http-server for node
For this guide we will be using http-server.
Once cloned, cd into the project folder and run
This will run the addon on http://localhost:8080/ and disable any page caching.
Open Squirrel and add the "Add-on Developer Program" component to the canvas
Once added, enter the addon URL (http://localhost:8080/) in the properties panel and click the "Get json files" button .
ensure you add a slash at the end of the URL
This will load up the properties panel, and show the addon web application