2022-07-01 07:39:52 +00:00
|
|
|
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:43:44 +00:00
|
|
|
|
|
|
|
async function bootstrap() {
|
2022-07-01 07:39:52 +00:00
|
|
|
const app = await NestFactory.createMicroservice(AppModule, {
|
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
|
|
|
host: "127.0.0.1",
|
|
|
|
port: 3003
|
|
|
|
}
|
|
|
|
});
|
|
|
|
app.listen().then(() => logger.log("Microservice Áreas Comunes is listening" ));
|
2022-07-01 01:43:44 +00:00
|
|
|
}
|
2022-07-01 07:39:52 +00:00
|
|
|
bootstrap();
|