In a previous post I explained what Node.js is and how it works. Now, I’ll help you install it and create your first Node.js powered webpage.
Let’s get started quickly now. There are many ways to develop Node.js web applications, but I find myself comfortable with the combination of NetBeans and commandline npm.
After downloading and installing npm (there is plenty of documentation for that, for instance here), create a directory demonode, and use that as your working directory. Create a file named main.js containing the following code: When you execute the command node main.js, you will be able to access the page on localhost:8080.
Although it works like a charm, there is not much you can do with this page. At this point, you probably want to leave the command line behind and use a proper IDE.
But not before you entered this command in the working directory:
This results in a wizard which creates a package.json file. Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.