init.js 302 Bytes
Newer Older
KangMin An's avatar
KangMin An committed
1
2
import app from "./app";
import dotenv from "dotenv";
3
4
import "./schedules"; // 매일 자정 데이터 처리

KangMin An's avatar
KangMin An committed
5
6
7
8
9
dotenv.config();

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

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

app.listen(PORT, handleListening);