feat: add deployment automation scripts

This commit is contained in:
2025-12-27 15:42:26 +11:00
parent 87f1711cbd
commit 33b2b708f4
9 changed files with 951 additions and 0 deletions

16
server.js Normal file
View File

@@ -0,0 +1,16 @@
const express = require('express');
const path = require('path');
const app = express();
const PORT = process.env.PORT || 3000;
// Serve static files from the current directory
app.use(express.static(__dirname));
// Fallback to index.html for any other requests (SPA behavior, though this is a simple page)
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
});
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});