Skip to content

Instantly share code, notes, and snippets.

@nitish24p nitish24p/server.js
Created Nov 20, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.