Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a workspace is open in the IDE, the default save location will be the workspace directory:

Configuring Routes to Run Profound.js Modules

To run an application, you must first create one or more callable Profound.js modules. See here for instructions on creating a callable module. Then, you must configure a route (a URL path) that will be used to call the module. To configure routes, right-click on your Profound.js module file or Rich Display File JSON file in the files Tree and select Properties:

Image Added 

On the File Properties dialog, you can configure 2 different types of routes: 

  • An App Start Route. There can be only 1 App Start Route in each workspace. This route runs a module when the URL specifies just the workspace name. The route can be either a stateful Rich Display File program, or a stateless Express program. For a stateful Rich Display File program, just click the App Start box:

Image Added

For a stateless Express program, also check the Express Route Box and optionally select the desired HTTP method to respond to:

Image Added

The Files Tree will display an icon next to the file associated with the App Start route, if configured:

Image Added


  • A Named Route. A workspace can contain any number of Named Routes. These routes run when the URL includes a route name, in addition to the workspace name. Named Routes can also be either stateful Rich Display File programs, or stateless Express programs. To set up a named route, check the Express Route box, uncheck the App Start Route box, select the desired HTTP method, and fill in the desired route name. Route names must be unique within the workspace. For a stateful Rich Display File program, set the HTTP Method to 'get' and check the Rich Display App box.

Image Added

The Files Tree will display an icon next to any files associated with a Named Route:

Image Added