init.js
289 Bytes
import "regenerator-runtime";
import "dotenv/config";
import "./db";
import "./models/User";
import app from "./server";
const PORT = process.env.PORT || 5500;
const handleListening = () => console.log(`✅ Server running : http://localhost:${PORT}`);
app.listen(PORT, handleListening);