Skip to content
xna2 edited this page Jun 18, 2012 · 17 revisions

install npm manually

npm install express

Create a file called package.json

{
    "name":"application-name"
    , "author":"Izzak Schroeder <[email protected]>"
    , "version":"0.0.1"
    , "dependencies":{
        "express":">=2.5.10"
    }
}

h1

h2

var server = require('express').cerateServer();

server.get("/", function(request, response){
response.writeHead(200,{"Content-type":text/plain})
response.end('miami');
})

server.listen(8888);
Clone this wiki locally