first commit

This commit is contained in:
2026-10-03 13:40:26 +02:00
parent 732a5b5a16
commit 566f415fa7
555 changed files with 62704 additions and 0 deletions

23
apps/api/src/main.ts Normal file
View File

@@ -0,0 +1,23 @@
import { Logger, ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { DomainErrorFilter } from '@task-stream/api/shared/presenters';
import { AppModule } from './app/app.module';
async function bootstrap() {
// rawBody: needed to verify Pireon webhook signatures.
const app = await NestFactory.create(AppModule, { rawBody: true });
app.setGlobalPrefix('api');
app.enableCors();
app.enableShutdownHooks();
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
app.useGlobalFilters(new DomainErrorFilter());
const port = process.env['PORT'] || 3000;
await app.listen(port);
Logger.log(
`🚀 GraphQL: http://localhost:${port}/graphql (ws for subscriptions)`,
);
Logger.log(`❤️ Health: http://localhost:${port}/api/health`);
}
bootstrap();