- drivers: apply/approve/status/location (+Redis GEO presence) - trips: request→accept→status transitions + trip_events audit + offers via socket - matching: Redis GEO nearby drivers - tariff: JSON-rule engine (time_or_distance/window/rounding) + quote endpoint - maps: straight-line routing seam (انطلق later) - realtime: Socket.IO gateway (JWT auth, tenant rooms) - seed: demo tenant siro + default tariff on boot - migration InitP1 (drivers/tariffs/trips/trip_events) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
557 B
TypeScript
20 lines
557 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
|
import { RealtimeGateway } from './realtime.gateway';
|
|
|
|
@Module({
|
|
imports: [
|
|
JwtModule.registerAsync({
|
|
imports: [ConfigModule],
|
|
inject: [ConfigService],
|
|
useFactory: async (cfg: ConfigService) => ({
|
|
secret: cfg.get<string>('JWT_SECRET') || 'change_me_jwt_secret',
|
|
}),
|
|
}),
|
|
],
|
|
providers: [RealtimeGateway],
|
|
exports: [RealtimeGateway],
|
|
})
|
|
export class RealtimeModule {}
|