14 lines
395 B
JavaScript
14 lines
395 B
JavaScript
import express from "express";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const directory = path.dirname(fileURLToPath(import.meta.url));
|
|
const app = express();
|
|
const port = process.env.PORT || 3000;
|
|
|
|
app.use(express.static(path.join(directory, "public")));
|
|
|
|
app.listen(port, "0.0.0.0", () => {
|
|
console.log(`Group buttons website listening on port ${port}`);
|
|
});
|