You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
412 B

var express = require('express'); //require express package
var app = express(); //create application variable
app.get('/', function(request, response){
response.send('oh hai!');
});
//params: port, callback to execute once listening has begun
app.listen(3000, function () { //start app listening on port 3000
//once listening, execute this callback
console.log('Example app listening on port 3000!');
});