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

24 lines
659 B
TypeScript
Raw Normal View History

2022-06-29 09:23:07 +00:00
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ClientsModule, Transport } from "@nestjs/microservices";
import { UsersModule } from './users/users.module';
@Module({
imports: [
ClientsModule.register([
{
name: "SERVICIO_USUARIOS",
transport: Transport.TCP,
options: {
host: "127.0.0.1",
port: 3001
}
}
]),
MongooseModule.forRoot(`mongodb+srv://proyecto_4:proyecto_4@proyecto4.yv4fb.mongodb.net/servicio_usuarios?retryWrites=true&w=majority`),
UsersModule],
controllers: [],
providers: [],
})
export class AppModule {}