Now Node.js will be running in the port 8080 in localhost. Now open the terminal or command prompt and run it as node hello.js Open a text document and enter the following code and save it as hello.js var http = require('http') >To test open the command prompt and run the command to see the version of Node.js installed. >Just download the windows installer from the link and install as typical windows installation. Installing Node.js in Windows is as easy as eating a piece of cake. To test enter the command in the terminal which shows the Node.js version. Now Node.js will now be installed in your Ubuntu machine. > Then enter the following commands./configure > Then switch to the extracted directory via terminal. sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install nodejs Compile from sources (Alternate Method) ![]() Ubuntu users can easily install Node.js from the repository using the command in terminal. ![]() We will be using these technologies with our Android projects later. ![]() In this tutorial we are going to Setup Node.js platform and MongoDB database in Ubuntu and Windows. Node.js and MongoDB are hot technologies available today used in various real time applications.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |