Generating configuration files
Carlos Solis avatar
Written by Carlos Solis
Updated over a week ago

Open the Retail Summary Widget with your code editor.

Create a new file called ".env" in the root folder.

Open .env and copy the following. Replace the values with your information.

MODYO_ACCOUNT_URL= https://advocate.modyo.cloud/ //URL of the account that owns the site MODYO_VERSION=9 //The version of the Modyo platform MODYO_TOKEN=xxxxxxxxx //The token for accessing the admin API MODYO_SITE_HOST=modyo-302 //The Hostname, located within the platform, in Sites MODYO_WIDGET_NAME=summary //The name of the widget MODYO_BUILD_DIRECTORY=dist //The widget path (default: dist)
Open .env and copy the following. Replace the values with your information.

Build the release version of the Widget by using "npm run build" in your Terminal.

In your Terminal, run "modyo-cli push summary" to upload your Widget to Modyo Platform.

In your Terminal, run "modyo-cli push summary" to upload your Widget to Modyo Platform.

Your Widget will be uploaded to the Widgets section in Modyo Platform.

Note: Widgets that were uploaded from the CLI cannot be edited in the Platform. To upload changes, make them locally first, re-build, and upload the Widget using the CLI.

Your Widget will be uploaded to the Widgets section in Modyo Platform.


Did this answer your question?