Initial commit, including all apps previously in course
This commit is contained in:
11
nodejs-helloworld/app.js
Normal file
11
nodejs-helloworld/app.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var express = require('express');
|
||||
app = express();
|
||||
|
||||
app.get('/', function (req, res) {
|
||||
res.send('Hello World!');
|
||||
});
|
||||
|
||||
app.listen(8080, function () {
|
||||
console.log('Example app listening on port 8080!');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user