Skip to content

Instantly share code, notes, and snippets.

@nitish24p
Created November 20, 2017 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitish24p/095976ddbb4427796c32bed2dec0346b to your computer and use it in GitHub Desktop.
Save nitish24p/095976ddbb4427796c32bed2dec0346b to your computer and use it in GitHub Desktop.
const app = require('./app.js');
const http = require('http')
const server = http.createServer(app);
const PORT = process.env.NODE_ENV || 5000;
server.listen(PORT, () => {
console.log(`Listening to port ${PORT}`);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment