Skip to content

Instantly share code, notes, and snippets.

@jdx
Created October 14, 2015 23:35
Show Gist options
  • Save jdx/ce41abacb12a0f220ccd to your computer and use it in GitHub Desktop.
Save jdx/ce41abacb12a0f220ccd to your computer and use it in GitHub Desktop.
'use strict';
let express = require('express');
let app = express();
app.get('/', function (req, res) {
// render out the angular bootstrap page
res.render('index.html.ejs');
});
app.use(express.static('public'));
// listen on $PORT or 3000
// this makes the app work on heroku
app.listen(process.env.PORT || 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment