Skip to content

Commit

Permalink
chore: server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammedAO committed Jun 1, 2024
1 parent 5332741 commit 0c2dd9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import app from "./app";

async function init() {
try {
app.listen(3001, () => {
console.log('Express App Listening on Port 3001');
});
} catch (error) {
console.error(`An error occurred: ${JSON.stringify(error)}`);
process.exit(1);
}
}

init();

0 comments on commit 0c2dd9b

Please sign in to comment.