const express = require("express"); const app = express(); const PORT = process.env.PORT || 3000; // Import sentences from sentences.js const sentences = require("./sentences"); // Serve static files from the "public" directory app.use(express.static("public")); app.get("/", (req, res) => { const randomSentence = sentences[Math.floor(Math.random() * sentences.length)]; res.send(` Tim Walz Fixed Your Bicycle
Donate to Harris/Walz 2024 Get a shirt
Not paid for by any candidate or candidates’ committee.
`); }); app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); });