ce676f20a4
Too many changes to split them up. This commit contains roughly two months worth of work. This commit introduces the first aggregate and rewrites the ticket system to follow DDD patterns. It adds Spartan NG as the new component library. TanStack Query to replace GraphQL. Oh and Prisma is almost over as well.
32 lines
852 B
TypeScript
32 lines
852 B
TypeScript
import { HyperDXNestLoggerModule } from '@hyperdx/node-logger';
|
|
import * as HyperDX from '@hyperdx/node-opentelemetry';
|
|
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
import './instrumentation';
|
|
import { ValidationPipe } from '@nestjs/common';
|
|
|
|
async function bootstrap() {
|
|
const logger = HyperDXNestLoggerModule.createLogger({
|
|
apiKey: '71addf09-bcd2-4e83-8158-97458402137b',
|
|
service: 'avicenna-data-connector',
|
|
maxLevel: 'info',
|
|
});
|
|
const app = await NestFactory.create(AppModule, {
|
|
logger: logger,
|
|
});
|
|
app.useGlobalPipes(
|
|
new ValidationPipe({
|
|
whitelist: true,
|
|
transform: true,
|
|
transformOptions: {
|
|
enableImplicitConversion: false,
|
|
},
|
|
}),
|
|
);
|
|
app.enableCors();
|
|
HyperDX.setupExpressErrorHandler(app);
|
|
|
|
await app.listen(3000);
|
|
}
|
|
bootstrap();
|