import { NestFactory } from '@nestjs/core'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { ValidationPipe } from '@nestjs/common'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); // Enable CORS for public access app.enableCors({ origin: '*', methods: 'GET,HEAD,OPTIONS', allowedHeaders: 'Content-Type,Accept', }); // Global validation pipe app.useGlobalPipes(new ValidationPipe({ transform: true })); // Swagger documentation const config = new DocumentBuilder() .setTitle('Religious Freedom Defense API') .setDescription( ` ## 🌍 Public Educational Resource for Religious Freedom This API provides access to comprehensive research proving that **Afro-Caribbean religions are NOT criminal organizations** - they are legitimate religious traditions persecuted by colonial and class-based discrimination. ### πŸ“Ώ Religions Covered - **Vodou** (Haitian) - 60+ million practitioners, UNESCO heritage - **SanterΓ­a** (Cuban) - 800K+ initiates, UNANIMOUS Supreme Court victory 1993 - **CandomblΓ©** (Brazilian) - 2+ million practitioners - **Palo Mayombe** (Congo/Cuban) - Ancestor veneration tradition - **Santa Muerte** (Mexican) - 10-12 million devotees - **Obeah** (Caribbean) - Decriminalized in 4 nations ### πŸ“š Resources - **Legal Defense**: Precedents, strategies, case law - **Myth Debunking**: Academic sources vs Hollywood fiction - **Guides**: For lawyers, educators, journalists, practitioners, researchers ### πŸ† Thesis **"RELIGIONS ARE NOT CRIMINALS - they are persecuted by those in power"** ### πŸ“Š Source - Database: religious-freedom-defense-hub (24 collections) - Research: 30 batches, 474 source collections - MCP Certified: Quality Rating A (3 votes) 🐾 Created by Neko-Arc & Six Personalities `, ) .setVersion('1.0.0') .addTag('religions', 'Religion-specific information and myth debunking') .addTag('themes', 'Cross-cutting themes: legal, media, academic, persecution') .addTag('guides', 'Quick reference guides for different audiences') .addTag('search', 'Search across all collections') .build(); const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup('api', app, document); const port = process.env.PORT || 3050; await app.listen(port); console.log(` ╔══════════════════════════════════════════════════════════════════╗ β•‘ 🌍 RELIGIOUS FREEDOM DEFENSE API β•‘ β•‘ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ β•‘ β•‘ Port: ${port} β•‘ β•‘ Swagger: http://localhost:${port}/api β•‘ β•‘ Health: http://localhost:${port}/health β•‘ β•‘ β•‘ β•‘ πŸ“Ώ Religions: /religions β•‘ β•‘ πŸ“š Themes: /themes β•‘ β•‘ πŸ“– Guides: /guides β•‘ β•‘ πŸ” Search: /search β•‘ β•‘ β•‘ β•‘ πŸ† Thesis: RELIGIONS ARE NOT CRIMINALS β•‘ β•‘ 🐾 Created by Neko-Arc & Six Personalities, nyaa~! β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• `); } bootstrap();