feat: Complete NestJS backend scaffold — 22 modules, 39 entities, WebSocket gateway
All checks were successful
Test Asgard Runner / test (push) Successful in 3s

Full backend rewrite from Rust/Axum to NestJS/TypeScript.
- 22 feature modules (auth, servers, wipes, maps, plugins, players, console,
  chat, team, notifications, settings, schedules, analytics, alerts, status,
  store, webstore, admin, setup, migration, users, licenses)
- 39 TypeORM entities matching PostgreSQL schema (12 migrations)
- Common infrastructure: JWT/RBAC guards, decorators, exception filter
- NATS service with pub/sub/request-reply
- Socket.IO WebSocket gateway with NATS bridge
- Docker: NestJS Dockerfile + updated docker-compose.yml
- Zero compile errors (npx tsc --noEmit clean)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-02-15 21:29:25 -05:00
parent 0f8d0dd14f
commit d20493d533
141 changed files with 13552 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
import { IsString, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class SendCommandDto {
@ApiProperty({
example: 'say "Hello, players!"',
description: 'Console command to execute on the server',
})
@IsString()
@IsNotEmpty()
command: string;
}

View File

@@ -0,0 +1,56 @@
import { IsOptional, IsString, IsInt, IsBoolean } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
export class UpdateServerConfigDto {
@ApiPropertyOptional({ example: 'My Rust Server', description: 'Server name' })
@IsOptional()
@IsString()
server_name?: string;
@ApiPropertyOptional({ example: 100, description: 'Maximum players' })
@IsOptional()
@IsInt()
max_players?: number;
@ApiPropertyOptional({ example: 4000, description: 'World size' })
@IsOptional()
@IsInt()
world_size?: number;
@ApiPropertyOptional({ example: 123456, description: 'Current world seed' })
@IsOptional()
@IsInt()
current_seed?: number;
@ApiPropertyOptional({ example: true, description: 'Enable auto-restart' })
@IsOptional()
@IsBoolean()
auto_restart_enabled?: boolean;
@ApiPropertyOptional({ example: '0 4 * * *', description: 'Auto-restart cron schedule' })
@IsOptional()
@IsString()
auto_restart_cron?: string;
@ApiPropertyOptional({ example: true, description: 'Enable crash recovery' })
@IsOptional()
@IsBoolean()
crash_recovery_enabled?: boolean;
@ApiPropertyOptional({ example: true, description: 'Eligible for force wipes' })
@IsOptional()
@IsBoolean()
force_wipe_eligible?: boolean;
@ApiPropertyOptional({ example: true, description: 'Auto-update on force wipe' })
@IsOptional()
@IsBoolean()
auto_update_on_force_wipe?: boolean;
@ApiPropertyOptional({
example: { 'server.pve': 'true', 'server.radiation': 'false' },
description: 'Server config overrides (key-value pairs)',
})
@IsOptional()
config_overrides?: Record<string, string>;
}