This commit is contained in:
10
start.js
10
start.js
@@ -1,8 +1,12 @@
|
||||
//Starts
|
||||
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 http://localhost:${PORT}`);
|
||||
console.log(`Transit API running at http://localhost:${PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user