But be aware: it is fun and addictive!
Enough theory, let’s create a new server project in Smart Mobile Studio 2. After you start the IDE we click on the upper left “New…” button. In the projects window we select “Node.js project (server)”:
We close the dialog using the OK button and we have our own “Hello world” demo ready :).
In this demo, we create a new HTTP server, which listens on port 80. For each connection an anonymous method is run which only responds (by closing the response) with the famous (?) “hello world” text. Because node.js runs in a console, we can only show some debug text using “Console.log”.
Let’s run! Press F9 or the “Execute” button to run the server.
(note: when you get “ShellExecute failed with error code 2” you need to install node.js: http://nodejs.org/download/)
Now, start your browser and go to http://localhost:
Simple isn’t it?