Skip to content

Instantly share code, notes, and snippets.


jazibsawar/server.js Secret

Created Jan 5, 2018
What would you like to do?
const express = require('express');
const path = require('path');
const serveStatic = require('serve-static');
const history = require('connect-history-api-fallback');
app = express();
app.use(serveStatic(__dirname + "/dist"));
const port = process.env.PORT || 5000;
console.log(`Server started on port ${port}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment