Skip to content

Instantly share code, notes, and snippets.

@codeorelse
Last active February 17, 2017 13:31
Show Gist options
  • Save codeorelse/92d779ad71a2d179729960d113c744ce to your computer and use it in GitHub Desktop.
Save codeorelse/92d779ad71a2d179729960d113c744ce to your computer and use it in GitHub Desktop.
Basic server Heroku
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hola Luis!');
});
app.listen(process.env.PORT || 3000, function () {
console.log('App listening on port 3000!');
})
{
"name": "luis-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.13.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment