Skip to content

Instantly share code, notes, and snippets.

@gorkamu
Created May 1, 2017 10:03
Show Gist options
  • Save gorkamu/eaa6f2ec0abe6bfdad53ab32f9ba499c to your computer and use it in GitHub Desktop.
Save gorkamu/eaa6f2ec0abe6bfdad53ab32f9ba499c to your computer and use it in GitHub Desktop.
Entry point of a node.js application
'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