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

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

const handleListening = () => {
8
  console.log(`✅ Listening on : http://localhost:${PORT}`);
KangMin An's avatar
KangMin An committed
9
10
11
};

app.listen(PORT, handleListening);