17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import app from './app';
|
|
import { clientConfig, config } from './config/index';
|
|
import client from './client'
|
|
|
|
const PORT = config.port;
|
|
const CLIENT_PORT = clientConfig.port;
|
|
|
|
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}`)
|
|
})
|