Created
November 20, 2013 20:45
-
-
Save mrunalp/7570688 to your computer and use it in GitHub Desktop.
Supporting files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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