Sunday, October 14, 2018

CREATİNG YOUR FİRST APLİCATİON WİTH NODE.JS

Creating your first aplication with node.js


Firstly my computer must install VS Code.You can dowland it for free from this addres


We are lets start with simple aplication.We must use HTTP modul for create web server.Call the modul with require code.We can create web server with the modul contained createServer() code.You’ll notice that the createServer function takes on a setting and that this setting is a functionin the function contained parameters request : request made, if response servers response.
As a result the most basic simple web server create. Click wiew menu in the integrad terminal


The screen of the terminal write node kubra.js and press enter(The file name is kubra.js)


The console doesn’t display anything and doesn’t respond . Now open your browser and go to the address http://localhost:8080. You should notice that the output the undermentioned

To stop your Node.js server, return to the console and press ctrl + C to cut off the command.