Delete Server directory

This commit is contained in:
Mohammad Khalilzadeh authored and GitHub committed 2024-05-18 09:04:41 +03:30
1 parent b2c8e50043
commit 3a94abb649
17 files changed
-3147

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
const PORT = process.env.PORT || 5000;
const connectDbAndRunServer = async (app, db) => {
try {
await db.connect();
app.listen(PORT, () => {
console.log(`server started on port:${PORT}`);
});
} catch (error) {
console.log("Failed to connect to DB");
console.error(error);
}
};
module.exports = { connectDbAndRunServer };