12 lines
392 B
JavaScript
12 lines
392 B
JavaScript
const express = require('express');
|
|
const http = require('http');
|
|
const path = require('path');
|
|
const app = express();
|
|
const port = 8081
|
|
|
|
app.use(express.static(__dirname + '/dist/StockExchangeAlert'));
|
|
app.get('/*', (req, res) => res.sendFile(path.join(__dirname)));
|
|
const server = http.createServer(app);
|
|
|
|
server.listen(port, () => console.log(`App running on: http://localhost:${port}`));
|