Files
quicklanch-server/src/server.ts
T
abumahid 3f0ead4265 🔧 chore(account): update account module structure and email queue processing
- Enhanced account management with new validation and Swagger documentation.
- Updated Prisma schemas and migrations for the account and profile.
- Improved email handling mechanisms in the email queue system with new worker functionality.
- Adjusted Docker configurations and package dependencies for better integration.
2026-04-03 00:54:46 +06:00

21 lines
523 B
TypeScript

import app from "./app";
import { configs } from "./app/configs/index";
import { prisma } from "./app/lib/prisma";
import "./app/queues/worker";
async function main() {
try {
app.listen(configs.port, async () => {
await prisma.$connect();
console.log(`Server is running on port ${configs.port}`);
});
} catch (error) {
console.error("Error starting server:", error);
}
}
main().catch((error) => {
console.error("Error in main function:", error);
process.exit(1);
});