mirror of
https://github.com/geerlingguy/ansible-for-devops.git
synced 2024-05-19 06:50:03 +00:00
16 lines
406 B
JavaScript
16 lines
406 B
JavaScript
// Simple Express web server.
|
|
// @see http://howtonode.org/getting-started-with-express
|
|
|
|
// Load the express module.
|
|
var express = require('express');
|
|
var app = express();
|
|
|
|
// Respond to requests for / with 'Hello World'.
|
|
app.get('/', function(req, res){
|
|
res.send('Hello World!');
|
|
});
|
|
|
|
// Listen on port 80 (like a true web server).
|
|
app.listen(80);
|
|
console.log('Express server started successfully.');
|