katoikia-app/servicio-reservaciones/src/main.ts

18 lines
498 B
TypeScript
Raw Normal View History

import { NestFactory } from "@nestjs/core";
import { Transport } from "@nestjs/microservices";
import { AppModule } from "./app.module";
import { Logger } from "@nestjs/common";
const logger = new Logger();
2022-07-01 01:46:34 +00:00
async function bootstrap() {
const app = await NestFactory.createMicroservice(AppModule, {
transport: Transport.TCP,
options: {
host: "127.0.0.1",
port: 3006
}
});
app.listen().then(() => logger.log("Microservice Reservaciones is listening" ));
2022-07-01 01:46:34 +00:00
}
bootstrap();