katoikia-app/servicio-pagos/src/app.module.ts

25 lines
666 B
TypeScript
Raw Normal View History

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