13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
import express from "express";
|
|
import app from "./app.js";
|
|
|
|
const PORT = process.env.PORT || 7653;
|
|
|
|
// Serve static files from "public" folder
|
|
app.use(express.static('public'));
|
|
|
|
// Start the server
|
|
app.listen(PORT, () => {
|
|
console.log(`Transit API running at http://localhost:${PORT}`);
|
|
});
|