import { NestFactory } from "@nestjs/core" ; import { AppModule } from "./app.module" ; import { Transport } from "@nestjs/microservices" ; import { config } from "@commerce/shared" ; async function bootstrap ( ) { const app = await NestFactory . createMicroservice ( AppModule , { transport : Transport . REDIS , options : { url : `redis://${ config . REDIS_URL }:${ config . REDIS_PORT }` } } ) ; await app . listen ( ( ) => console . log ( `users module is listening` ) ) ; } bootstrap ( ) ;