Skip to Content

Last week I had the privilege to attend my first SAP Tech Ed.

I had heard about some of the possible new features and also eager to learn more on the new features. One that caught my attention due to my main work stream is the addition to Nodejs into the XS world initially on SP11.

While I was waiting for a session on the new Extended Application Services hands on workshop, I attempted to learn more about nodejs and learn what this was all about.

As I understood from Thomas Jung and other colleagues in the room, is that Nodejs is a framework that will allow us to do web development local to our developer machines instead of having to have everything on the SAP HANA repository.

disclaimer:
there may be more advanced things as well that could be done, however, this is just to showcase how simple it is..

It took me less than 30 mins to set this up.

3 things I really liked from nodejs

1) simple and easy way to run a web app in a dev environment

2) easy way to separate web apps, web services, etc into their own node processes – smaller processes = run faster

3) nodejs has many modules that are available for everyone and they are very easy to use

I look forward to learning more and more on nodejs and be able to contribute more

example:

1) you would create a simple nodejs app by writing text to the screen

/wp-content/uploads/2015/10/webserverinnodejs_818207.png

2) same exercise from above, however, running a sample index.html file which could be your SPA app

/wp-content/uploads/2015/10/nodejs_index_818209.png

before being able to run this app, you would need to run the nodejs javascript file from above from your command line

runNodeJsserver.png

and be able to see it from your windows task manager

nodejsProcessInCmd.png

similarly you would run a restful web service which returns JSON and following the same steps from above return a JSON response  from another nodejs thread (notice different port number on this service)

jsonResponseInNodeJs.png

happy coding!

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

    1. Sergio Guerrero Post author

      Hi Frank,

      I have not done that yet as I don’t have SP11 on my system yet. I did this blog post from the point of view as a start for my node.js knowledge, however, I do not think it should be that difficult. the db portion should not change. it is only the XSA (XS Advanced) piece that will be under nodejs.

      what is your concern or what is your scenario? maybe I can provide some pointers

      (0) 

Leave a Reply