Stirling-PDF/index.js

18 lines
425 B
JavaScript
Raw Normal View History

2023-10-16 23:11:33 +02:00
import express from 'express';
2023-10-16 23:11:33 +02:00
const app = express();
const PORT = 8080;
2023-11-07 01:45:16 +01:00
// server-node: backend api
import api from './server-node/routes/api/index.js';
app.use("/api/", api);
2023-10-16 23:11:33 +02:00
2023-11-07 01:45:16 +01:00
// client-vanilla: frontend
app.use(express.static('./client-vanilla'));
app.use(express.static('./shared-operations'));
2023-11-07 01:45:16 +01:00
// serve
2023-10-16 23:11:33 +02:00
app.listen(PORT, function (err) {
if (err) console.log(err);
console.log(`http://localhost:${PORT}`);
});