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

27 lines
717 B
TypeScript
Raw Normal View History

2022-07-01 01:46:34 +00:00
import { Module } from '@nestjs/common';
import { ReservationsModule } from './reservations/reservations.module';
2022-07-25 04:38:48 +00:00
import { ClientsModule, Transport } from '@nestjs/microservices';
import { MongooseModule } from '@nestjs/mongoose';
2022-07-01 01:46:34 +00:00
@Module({
imports: [
ClientsModule.register([
{
2022-07-25 04:38:48 +00:00
name: 'SERVICIO_RESERVACIONES',
transport: Transport.TCP,
options: {
2022-07-25 04:38:48 +00:00
host: '127.0.0.1',
port: 3006,
},
},
]),
2022-07-25 04:38:48 +00:00
MongooseModule.forRoot(
`mongodb+srv://proyecto_4:proyecto_4@proyecto4.yv4fb.mongodb.net/servicio_reservaciones?retryWrites=true&w=majority`,
),
ReservationsModule,
],
controllers: [],
providers: [],
2022-07-01 01:46:34 +00:00
})
export class AppModule {}