Created
August 25, 2018 17:06
-
-
Save jkasun/0e748ab56ad688be36d17381215ee222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const express = require('express'); | |
const app = express(); | |
app.get('/*', function (req, res) { | |
res.sendFile(path.join(__dirname + '/../app/index.html')); | |
}); | |
app.listen(3000, () => { | |
console.log('Sample SPA is running on port 3000!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment