Skip to content

Instantly share code, notes, and snippets.

@mrunalp
Created November 20, 2013 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrunalp/7570688 to your computer and use it in GitHub Desktop.
Save mrunalp/7570688 to your computer and use it in GitHub Desktop.
Supporting files
[mrunal@localhost nodejs]$ cat package.json
{
"name": "docker-fedora-nodejs",
"private": true,
"version": "0.0.1",
"description": "Node.js Hello World app on Fedora using docker",
"author": "Mrunal Patel <mpatel@redhat.com>",
"dependencies": {
"express": "*"
}
}
[mrunal@localhost nodejs]$ cat index.js
var express = require('express');
// Constants
var PORT = 8080;
// App
var app = express();
app.get('/', function (req, res) {
res.send('Hello World\n');
});
app.listen(PORT)
console.log('Running on http://localhost:' + PORT);
[mrunal@localhost nodejs]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment