Skip to content

A basic template to quickly start creating a Meraki script.

License

Notifications You must be signed in to change notification settings

merakigenart/script-starter-template

Repository files navigation

Meraki Script Starter Template

This template is designed to get you developing a Script for Meraki as quickly as possible.

Your project must contain at least two files - Script.js and ScriptTraits.js. See the SDK documentation for more a comprehensive description of the requirements when using the SDK.

To get started, run the setup command below and you can jump right into developing a P5.js, three.js, or plain javascript script for Meraki using our SDK.

Setup

To get started, you need to install the project dependencies:

npm install

Checking Your Script

To enhance your development experience, Meraki provides a web service that validates your scripts.

To run the script checks on your Script.js file:

npm run check:script

and for your ScriptTraits.js file:

npm run check:traits

You should see output similar to the following:

image

Previewing Your Work

To start a web server that will display the current rendering of your script, run:

npm run serve

Open the url generated by this command in your browser to view your rendered image.

You may initially see the dashboard - simply select the item that applies to your script:

image

Bundle Your Work

To bundle your project's source code into a zip archive for submission to Meraki:

npm run bundle

image

You may then submit the newly created project.zip file on the Meraki project dashboard:

image

Uploading the file does not submit it for review - it streamlines the process of getting your code into the platform, where they can be edited, rendered and submitted for review.


Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A basic template to quickly start creating a Meraki script.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •