Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Improved formatting consistency

...

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 Files Tree and select Properties:

 

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

  • An App Start Route. There can be only 1 one 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:

...

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

...

  • A Named Route. A workspace can contain any number of Named Routes. These routes run when the URL includes a path 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 path. Route paths 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.

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

...

If an App Start Route is configured, it can be launched in a browser tab by using the option Launch→Launch App in Browser Tab from Home section of the ribbon:

...

And then selecting the workspace from the Workspace tab on the Open Dialog:

Spaces Workspaces can also be opened using the Spaces List in the bottom bar:

...

To rename a workspace, use the right-click option in the Files Tree to rename the workspace directory:

...