Created
May 1, 2017 10:03
-
-
Save gorkamu/eaa6f2ec0abe6bfdad53ab32f9ba499c to your computer and use it in GitHub Desktop.
Entry point of a node.js application
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
'use strict' | |
var app = require('./app'); | |
var port = process.env.PORT || 3000; | |
app.listen(port, () => { | |
console.log(`Server running in http://localhost:${port}`); | |
console.log('Defined routes:'); | |
console.log(' [GET] http://localhost:3000/'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment