import express from 'express';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const app = express();
const PORT = process.env.UI_PORT || 3000;
// Serve static files
app.use(express.static(__dirname));
// Serve index.html for root
app.get('/', (req, res) => {
res.sendFile(join(__dirname, 'index.html'));
});
app.listen(PORT, () => {
console.log(`🌐 UI Server running at: http://localhost:${PORT}`);
});