Loading…
Loading…
TypeScript · DI
NestJS generates as a modular TypeScript backend with dependency injection, Guards for auth, DTOs with class-validator, TypeORM entities + migrations, and Swagger/OpenAPI. Natural fit for teams already on Angular or Node.
Every NestJS app generated by Archiet ships with these baseline pieces. No template-cutting, no placeholder TODOs.
One representative file from a generated NestJS app. Your generated output will include many more files like this one, customized to the entities and flows in your blueprint.
import { Controller, Post, Body, UseGuards } from '@nestjs/common';
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
import { JwtAuthGuard } from '../auth/jwt.guard';
import { CurrentUser } from '../auth/user.decorator';
import { ItemsService } from './items.service';
import { CreateItemDto } from './dto/create-item.dto';
@ApiTags('items')
@ApiBearerAuth()
@Controller('items')
@UseGuards(JwtAuthGuard)
export class ItemsController {
constructor(private readonly items: ItemsService) {}
@Post()
create(@Body() dto: CreateItemDto, @CurrentUser() user: User) {
return this.items.create(dto, user);
}
}Pick NestJS when you want a strongly-typed TypeScript backend with the same architectural feel as Angular or Spring. Excellent for enterprise teams coming from Java.