Last active
December 25, 2015 03:05
-
-
Save lanekatris/3b51753d8612e696737f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Installing node on linux | |
| // https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora | |
| // Basic Express App | |
| var express = require('express'); | |
| var app = express(); | |
| app.get('/', function (req, res) { | |
| console.log('Root URL hit'); | |
| res.send('Hello World!'); | |
| }); | |
| var server = app.listen(3000, function () { | |
| var host = server.address().address; | |
| var port = server.address().port; | |
| console.log('Example app listening at http://%s:%s', host, port); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment