Skip to content
Snippets Groups Projects
main.ts 394 B
Newer Older
  • Learn to ignore specific revisions
  • Pascal Kosak's avatar
    Pascal Kosak committed
    import { NestFactory } from '@nestjs/core';
    
    import { Group, Agent } from '@prisma/client';
    
    
    declare module 'express' {
        interface Request {
            group: Group;
    
    Pascal Kosak's avatar
    Pascal Kosak committed
    
    import * as dotenv from 'dotenv';
    dotenv.config();
    
    import { AppModule } from './app.module';
    
    (async () => {
    
    Pascal Kosak's avatar
    Pascal Kosak committed
        const app = await NestFactory.create(AppModule);
    
    Pascal Kosak's avatar
    Pascal Kosak committed
    
    
    Pascal Kosak's avatar
    Pascal Kosak committed
        await app.listen(3000);
    
    Pascal Kosak's avatar
    Pascal Kosak committed
    })();