Skip to content

Instantly share code, notes, and snippets.

View jkasun's full-sized avatar

Janith Kasun jkasun

View GitHub Profile
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!');