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-journeyfolder. -
Create a folder called
publicin thetrigger-journeyfolder -
update the
.envfile 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
publicfolder
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.