init.js 246 Bytes
Newer Older
KangMin An's avatar
KangMin An committed
1
2
3
4
5
6
7
8
9
10
11
import app from "./app";
import dotenv from "dotenv";
dotenv.config();

const PORT = process.env.PORT || 4500;

const handleListening = () => {
  console.log(`✅ Listening on : http://localhost:${PORT}}`);
};

app.listen(PORT, handleListening);