SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create an Application for Receiving Messages

Develop and deploy a basic Node.js-based messaging application for receiving messages from an SAP Event Mesh Queue.

Overview

🎓 beginner 20 min. SAP Event MeshBeginnerNode JsSAP Business Technology Platform

You will learn

  • โœ”How to create a basic messaging client application for receiving messages from a queue using SAP Event Mesh.
  • โœ”How to deploy this application to SAP Business Technology Platform
  • โœ”How to perform a quick test that your application works
Unknown U Unknown November 1, 2022
Created by August 5, 2019
Contributors

Prerequisites

Prerequisites

You will learn

  • How to create a basic messaging client application for receiving messages from a queue using SAP Event Mesh.
  • How to deploy this application to SAP Business Technology Platform
  • How to perform a quick test that your application works

Steps

Step 1 Install Node.js and create directory
โ€”

  1. Install Node.js and configure it locally.

  2. Add the dependency in applications package.json and run npm for it:

    npm install

  3. Create a directory that holds the files for your application - name it for example Consumer. Into this directory we will create three files:

    • The manifest.yml is the deployment descriptor and contains all required information to deploy an application to a SAP Business Technology Platform Cloud Foundry instance.

    • The package.json specifies the version of a package that your app depends on.

    • The application file holds the executable code.

Now create these files following the descriptions below into the created directory.

Step 2 Create manifest.yml file
+
Step 3 Create package.json file
+
Step 4 Create consumer.js file
+
Step 5 Deploy receiving application
+
Step 6 Test your application
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Install Node.js and create directory 2. Create manifest.yml file 3. Create package.json file 4. Create consumer.js file 5. Deploy receiving application 6. Test your application

Learn more →