2022-07-01 01:45:49 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
2022-07-01 09:48:27 +00:00
|
|
|
import { PaymentsModule } from './payments/payments.module';
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
2022-07-25 04:38:48 +00:00
|
|
|
import { ClientsModule, Transport } from '@nestjs/microservices';
|
2022-07-01 01:45:49 +00:00
|
|
|
|
|
|
|
@Module({
|
2022-07-01 09:48:27 +00:00
|
|
|
imports: [
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_PAGOS',
|
2022-07-01 09:48:27 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3005,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 09:48:27 +00:00
|
|
|
]),
|
2022-07-25 04:38:48 +00:00
|
|
|
MongooseModule.forRoot(
|
|
|
|
`mongodb+srv://proyecto_4:proyecto_4@proyecto4.yv4fb.mongodb.net/servicio_pagos?retryWrites=true&w=majority`,
|
|
|
|
),
|
|
|
|
PaymentsModule,
|
|
|
|
],
|
2022-07-01 09:48:27 +00:00
|
|
|
controllers: [],
|
|
|
|
providers: [],
|
2022-07-01 01:45:49 +00:00
|
|
|
})
|
|
|
|
export class AppModule {}
|