installation


NodeJS

before init the npm, go to NodeJS website and download & install NodeJS

npm init

nodeserver installation. discription : nodeserver test and enter, enter, enter.

nodeserver

web framework download

npm install express --save

as you see express is now added on the dependencies.

express

test server app.js

var express = require('express')
var app = express()
app.listen(3000, function()) {
  console.log("start! express server on port 3000");
}

Synchronous first, Asynchronous last.

install nodemon
nodemon check a source code change and a pply the change automatically.

sudo install nodemon -g 





© 2017. by isme2n

Powered by aiden