11 lines
196 B
TypeScript
11 lines
196 B
TypeScript
import app from "./app";
|
|
import dotenv from "dotenv";
|
|
|
|
dotenv.config();
|
|
|
|
const PORT = process.env.PORT || 3002;
|
|
|
|
app.listen(PORT, () => {
|
|
console.log(`Server is running on port ${PORT}`);
|
|
});
|