Files
pruebas-automatizacion-desa…/src/server.ts

17 lines
459 B
TypeScript
Raw Normal View History

2025-12-26 11:36:11 +01:00
import app from './app';
import { clientConfig, config } from './config/index';
import client from './client'
2025-12-26 11:36:11 +01:00
const PORT = config.port;
const CLIENT_PORT = clientConfig.port;
2025-12-26 11:36:11 +01:00
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT} in ${config.env} mode`);
console.log(`Webhook endpoint: http://localhost:${PORT}/api/webhooks`);
});
client.listen(CLIENT_PORT, () => {
console.log(`Client ins running on port ${CLIENT_PORT}`)
})