Posts

command [CMD] in Terminal

CMD in Terminal $node 30+40 70 $ npm view underscore $npm view underscore version $npm install underscore $npm uninstall underscore $npm install underscore@1.0.4 // make own package: $npm init Enter all detail and goto folder the "package.json" // to install package in ur project   $npm install underscore --save it will reflect to "package.json" npm install express@4.16.2 --save

Reference NodeJs

Image
Node.Js - Introduction   Node.Js - Environment Setup   Node.Js - Basic Applications   Node.Js - Package Manager (NPM)   Node.Js - Callbacks Function   Node.Js - Events   Node.Js - Error Handling   Node.Js - File Stream   Node.Js - Network Programming   Node.Js - Advance Network Programming   Node.Js - Express Framework   Node.Js - Middleware   Node.Js - State Management   Node.Js - Express Generator   Node.Js - MongoDB   Node.Js - Mongoose   Node.Js - RESTful API   Quick Links   Video Tutorials   Tutor Connect   Whiteboard   Net Meeting  Tutorials Library   Coding Ground Tools Node.js - Basic Applications  Previous Page Next Page     Previous Page Next Page    Advertisements          

First Program

1. Example of Nodejs console.log("welcome CTAL") var http = require("http"); var server = http.createServer(function (request, response) {    response.writeHead(200, {'Content-Type': 'text/plain'});    response.end('Hello World\n'); }); server.listen(1234, function(){ // Console will print the message console.log('Server running at http://127.0.0.1:1234/'); });