10 lines
225 B
JavaScript
10 lines
225 B
JavaScript
const express = require("express");
|
|
const app = express();
|
|
const port = process.env.PORT || 5000;
|
|
|
|
app.use(express.static("public"));
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server running at http://localhost:${port}`);
|
|
});
|