2022-07-01 01:43:44 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
2022-07-01 07:39:52 +00:00
|
|
|
import { CommonAreasModule } from './common_areas/common_areas.module';
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
import { ClientsModule, Transport } from "@nestjs/microservices";
|
|
|
|
|
2022-07-01 01:43:44 +00:00
|
|
|
|
|
|
|
@Module({
|
2022-07-01 07:39:52 +00:00
|
|
|
imports: [
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
|
|
|
name: "SERVICIO_AREAS_COMUNES",
|
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
|
|
|
host: "127.0.0.1",
|
|
|
|
port: 3003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]),
|
|
|
|
MongooseModule.forRoot(`mongodb+srv://proyecto_4:proyecto_4@proyecto4.yv4fb.mongodb.net/servicio_areas_comunes?retryWrites=true&w=majority`),
|
|
|
|
CommonAreasModule],
|
2022-07-01 01:43:44 +00:00
|
|
|
controllers: [],
|
|
|
|
providers: [],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|