2022-07-01 03:02:17 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
2022-07-01 22:40:45 +00:00
|
|
|
import { ReportsModule } from './reports/reports.module';
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
import { ClientsModule, Transport } from "@nestjs/microservices";
|
|
|
|
|
|
|
|
|
2022-07-01 03:02:17 +00:00
|
|
|
|
|
|
|
@Module({
|
2022-07-01 22:40:45 +00:00
|
|
|
imports: [
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
|
|
|
name: "SERVICIO_REPORTES",
|
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
|
|
|
host: "127.0.0.1",
|
|
|
|
port: 3008
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]),
|
|
|
|
MongooseModule.forRoot(`mongodb+srv://proyecto_4:proyecto_4@proyecto4.yv4fb.mongodb.net/servicio_reportes?retryWrites=true&w=majority`),
|
|
|
|
ReportsModule],
|
|
|
|
controllers: [],
|
|
|
|
providers: [],
|
2022-07-01 03:02:17 +00:00
|
|
|
})
|
2022-07-01 22:40:45 +00:00
|
|
|
export class AppModule { }
|