node.js in sap hana sps11

Post on 13-Apr-2017

1.840 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

@JPENNINKHOF

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?

HANA Repository

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

(but which repo doesn’t have that?)

WAT?

And I decided to leave the Jedi order

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

The New HANA (from 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

I am your father!

And the HANA repository

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

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

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.

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

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

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?

Hello Naboo!

Javascript, we need to have a word…

We need to talk about all the bad bits

Abstract Equalitycomparison

top related