Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Adding Node.js Module to Existing SAP HANA Project

SAP via YouTube

Overview

Learn how to add a Node.js module to an existing SAP HANA project in SAP HANA Cloud and Business Application Studio. Explore an alternative approach to SAP Cloud Application Programming Model by manually integrating a Node.js service. Discover the benefits of this method for custom response bodies, non-REST or OData services, and increased control. Follow along as the video guides you through copying the project, adjusting the mta.yaml file, initializing the srv module, and adding necessary Node.js modules. Dive into creating the entry point, setting up Express server, implementing middleware, configuring security, and adding health monitoring. Explore how to integrate SwaggerUI, test the service framework, and add specific routes for database queries. Conclude by learning how to generate Swagger documentation from JSDoc and test the service using SwaggerUI.

Syllabus

Introduction
Copy project
Adjust mta.yaml
npm init to create srv module
Addition Node.js modules
index.js entry point
expres-server.js to initialize express
express.js to add middleware to express
expressSecurity.js for security setup
healthCheck.js for external health monitoring
overloadProtection.js
swagger.js add SwaggerUI
Test the basic service framework
Add service specific routes
Get all route
Get single record route
Controller with DB queries
Swagger from JSDoc
Testing via SwaggerUI
Closing

Taught by

SAP Developers

Reviews

Start your review of Adding Node.js Module to Existing SAP HANA Project

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.