Skip to content

Instantly share code, notes, and snippets.

@mrunalp
Created November 20, 2013 20:45
Show Gist options
  • 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 <[email protected]>",
"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