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.
9 lines
337 B
9 lines
337 B
var express = require('express'); //require express package
|
|
var app = express(); //create application variable
|
|
|
|
//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!');
|
|
});
|