Using the IDE

Learn about all of the functions of Strivacity's integrated development environment (IDE) to quickly develop and test code snippets for enterprise integration with your existing home grown or third-party applications.

Main IDE screen

The below screen and table describe the various elements and functions of the main IDE screen:

elements and functions of the main IDE screen
IDE ElementNameDescription
1Settings menuDisplays the IDE settings for this function. Here you can manage dependencies from the NPM registry (https://www.npmjs.com).
2Hook NameDisplays the name of the current event hook that you are working with.
3Try OutThis triggers the event hook to execute as if it were being triggered during the actual event. You can use this for testing purposes to ensure that your code snippet is working correctly.
4Debug ModeToggling Debug Mode allows you to use the Try Out feature. In real time, you can see log output from the event hook as it executes.
5Toggle Screen SizeToggles the IDE view between windowed to full screen.
6Code SnippetsDisplays a list of pre-written code snippets to perform specific functions or tasks.
7Debug LogsWhen Debug Mode is enabled, log output from the event hook is visible in the Debug Logs window.
8ResponseShows the results of the call after using the 'Try Out' feature.

Code snippets

Code snippets are short, reusable pieces of code you can quickly add to your event hooks. Instead of writing code from scratch, this feature allows you to just drop in a snippet and tweak it as needed. Using the available snippets also ensures your code follows best practices and serves as a guide on how to implement common tasks.

How to use code snippets

  1. Start by logging into the Admin Console using an admin account.
  2. From the left-hand menu, select Lifecycle event hooks.
  3. You will see a listing of all your already created event hooks. If you want to add a new one, select +Create lifecycle event hook.
  4. In the IDE, place your cursor where you need the code, select Code snippets, and choose from the list. For example, the 'after identification screen' snippet allows you to display a custom screen right after the user completes the identification step.
    Depending on what kind of event hook you initially selected, different types of code snippets will be available that work in that context.
  5. Adjust the snippet to fit your specific needs.
  6. Run your hook to make sure everything works as expected. To do so, toggle Debug mode and select the Try out option.