Konstantinos-infogeek
1/28/2015 - 2:41 PM

Basic express server

Basic express server

var express= require('express');
var app = express();

app.get('/', function(request, response){
  response.send('Some text to display...');
});
app.listen(3000, someCallback);
var express= require('express');
var app = express();

app.use(express.static(__dirname+'/public'));

app.listen(3000, someCallback);