Test the solution

Test the solution

Deploy the sample assets

If you don’t have Node.js installed, download and install it from here

Verify installation by running:

node -v

npm -v

Set up the project folder

Create a new directory for the sample app using the following commands:

mkdir trigger-journey

cd trigger-journey

Initialize the Project

npm init -y

Install the required frameworks

npm install express dotenv axios cors

Copy asset files

  • Unzip and place the contents of project-root.zip in the trigger-journey folder.

  • Create a folder called public in the trigger-journey folder

  • update the .env file with the appropriate values. These values are available from the cURL command downloaded while creating the HTTP Source connection.

  • Unzip the contents of index.zip into the public folder

Run the server

Make sure you are in the trigger-journey directory.
Execute the command node server.js
Point your browser to web page
Fill and submit the form. The journey gets triggered, and an email is sent to the email id entered in the form.

recommendation-more-help
journey-optimizer-learn-help-tutorial-trigger-journey-on-form-submission