feat: Tmdb request proxying and caching in backend

This commit is contained in:
Aleksi Lassila
2024-12-16 00:23:06 +02:00
parent a3866ada6b
commit fbe622e53f
23 changed files with 20837 additions and 59 deletions

View File

@@ -0,0 +1,18 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from '../src/app.module';
import 'reflect-metadata';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as fs from 'fs';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const config = new DocumentBuilder().build();
const document = SwaggerModule.createDocument(app, config, {
deepScanRoutes: true,
});
SwaggerModule.setup('openapi', app, document, {});
fs.writeFileSync('./swagger-spec.json', JSON.stringify(document));
}
bootstrap();