Initial commit: Dimension47 project setup
- NestJS backend with JWT auth, Prisma ORM, Swagger docs - Vite + React 19 frontend with TypeScript - Tailwind CSS v4 with custom dark theme design system - Auth module: Login, Register, Protected routes - Campaigns module: CRUD, Member management - Full Prisma schema for PF2e campaign management - Docker Compose for PostgreSQL Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
44
server/src/app.module.ts
Normal file
44
server/src/app.module.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { APP_GUARD } from '@nestjs/core';
|
||||
|
||||
// Core Modules
|
||||
import { PrismaModule } from './prisma/prisma.module';
|
||||
|
||||
// Feature Modules
|
||||
import { AuthModule } from './modules/auth/auth.module';
|
||||
import { CampaignsModule } from './modules/campaigns/campaigns.module';
|
||||
|
||||
// Guards
|
||||
import { JwtAuthGuard } from './modules/auth/guards/jwt-auth.guard';
|
||||
import { RolesGuard } from './modules/auth/guards/roles.guard';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
// Configuration
|
||||
ConfigModule.forRoot({
|
||||
isGlobal: true,
|
||||
envFilePath: '.env',
|
||||
}),
|
||||
|
||||
// Core
|
||||
PrismaModule,
|
||||
|
||||
// Features
|
||||
AuthModule,
|
||||
CampaignsModule,
|
||||
],
|
||||
providers: [
|
||||
// Global JWT Auth Guard
|
||||
{
|
||||
provide: APP_GUARD,
|
||||
useClass: JwtAuthGuard,
|
||||
},
|
||||
// Global Roles Guard
|
||||
{
|
||||
provide: APP_GUARD,
|
||||
useClass: RolesGuard,
|
||||
},
|
||||
],
|
||||
})
|
||||
export class AppModule {}
|
||||
Reference in New Issue
Block a user