Node.js in SAP HANA SPS11

19
@JPENNINKHOF

Transcript of Node.js in SAP HANA SPS11

Page 1: Node.js in SAP HANA SPS11

@JPENNINKHOF

Page 2: Node.js in SAP HANA SPS11

A long time ago…

u Need for a small footprint application serveru On the same HANA boxu Tight integration

u Javascriptu Based on SpiderMonkey

WAT?

Page 3: Node.js in SAP HANA SPS11

HANA Repository

u Proprietary, Self-builtu Pretty steep learning curveu Quirks and gotchas

(but which repo doesn’t have that?)

WAT?

Page 4: Node.js in SAP HANA SPS11

And I decided to leave the Jedi order

Page 5: Node.js in SAP HANA SPS11

But then, something happened

u Move to Cloud Foundryu Cloud foundry says: Node.js

u SPS 11 -> Node.js, Java en C++u Existing XS will be called XS Legacy Classicu New XS will be called XS Awesome Advancedu Cross-platform apps: Cloud + onPremise!u Source code repository = GIT

Page 6: Node.js in SAP HANA SPS11

The New HANA (from SPS11)

Page 7: Node.js in SAP HANA SPS11

Node.js

u The new XS JavaScript runtime in SPS 11 is planned to be based on Node.jsu And it’s the same Node.js as you can download from http://nodejs.orgu Npm will worku Not necessarily runs on a HANA box

Page 8: Node.js in SAP HANA SPS11

I am your father!

Page 9: Node.js in SAP HANA SPS11

And the HANA repository

u Version control will be done in an external version control system (e.g. Git/GitHub repository)

Page 10: Node.js in SAP HANA SPS11

Version control and DI

u Version control will be done in an external version control system (e.g. Git/GitHub repository)

u Same application can live multiple times in HANA for e.g. dev/test/prod

u Deploy different Git branches of the same application to isolated containers and database schemes

Page 11: Node.js in SAP HANA SPS11

The Force

A comprehensive, inclusive and uniformly consistent experience,

for all members of the SAP developer ecosystem who seek to build, extend and deploy SAP-based applications,

on-premise and in the cloud.

Page 12: Node.js in SAP HANA SPS11

Weapon of choice

SAP Web IDEu Same core code base as the SAP Web IDE on HCP u Templates cover major HANA development:

u Database

u Node.js

u Web

u MTA (Multi-Target Application)

u Designed to use Git/GitHubas the primary source code repository

Page 13: Node.js in SAP HANA SPS11

SAP Web IDE for HANA

u Example of an MTA project u Sub-structures for

u db

u js

u Web

u Generates configuration filesu .hdiconfig

u package.json

u mta.yaml

Page 14: Node.js in SAP HANA SPS11

Node.js Padawans

The good

u It’s quicku NPM package manageru Asynchronous, non-blockingu Excellent community supportu There’s a package for that

The bad

u It’s Javascript. Wat?

Page 15: Node.js in SAP HANA SPS11

Hello Naboo!

Page 16: Node.js in SAP HANA SPS11

Javascript, we need to have a word…

Page 17: Node.js in SAP HANA SPS11

We need to talk about all the bad bits

Page 18: Node.js in SAP HANA SPS11

Abstract Equalitycomparison

Page 19: Node.js in SAP HANA SPS11