Skip to content

Commit

Permalink
implemente consumer and producer using rabiit for sending email as no…
Browse files Browse the repository at this point in the history
…tification
  • Loading branch information
anasabbal committed Jun 15, 2024
1 parent b86279c commit ceaf85b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

strategy:
matrix:
app: [driver, notification, nuber-app, ride, user-service]
app: [driver, notification, nuber-app, ride, user-service, auth]

steps:
- name: Checkout code
Expand Down
13 changes: 11 additions & 2 deletions apps/auth/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import { NestFactory } from '@nestjs/core';
import { AuthModule } from './auth.module';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
await app.listen(3000);
const app = await NestFactory.createMicroservice<MicroserviceOptions>(
AuthModule,
{
transport: Transport.TCP,
options: {
port: 3004,
},
},
);
await app.listen();
}
bootstrap();

0 comments on commit ceaf85b

Please sign in to comment.