Created
December 9, 2016 16:53
-
-
Save iambryancs/48719274c30a31acd4539ca70353280a to your computer and use it in GitHub Desktop.
Sample app.js
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
// Express framework | |
var express = require('express'); | |
var app = express(); | |
// Handle requests to / | |
app.get('/', function (req, res) { | |
res.send('Hello World!'); | |
}); | |
// Setup port | |
app.listen(process.env.PORT || 8000); | |
module.exports = app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment