backend-dev-guidelines

Solid

Backend architecture principles, layering, error handling, logging patterns for NestJS. Use when designing NestJS modules, writing service logic, structuring error handling, or setting up structured logging.

Web & Frontend 30 stars 9 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Backend Development Guidelines ## NestJS Layered Architecture ``` src/ ├── modules/ │ └── users/ │ ├── users.module.ts # DI wiring │ ├── users.controller.ts # HTTP layer — parse, validate, delegate │ ├── users.service.ts # Business logic │ ├── users.repository.ts # Data access │ ├── dto/ │ │ ├── create-user.dto.ts │ │ └── update-user.dto.ts │ ├── entities/ │ │ └── user.entity.ts │ └── users.spec.ts ├── common/ │ ├── filters/ # Global exception filters │ ├── guards/ # Auth/RBAC guards │ ├── interceptors/ # Logging, transform │ ├── decorators/ # Custom decorators │ └── pipes/ # Validation pipes └── config/ └── configuration.ts ``` ## Controller Layer Controllers should be thin: validate inputs, call services, return responses. ```typescript // users/users.controller.ts import { Controller, Get, Post, Put, Delete, Body, Param, Query, ParseIntPipe, UseGuards, HttpCode, HttpStatus, } from '@nestjs/common' import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger' import { JwtAuthGuard } from '../common/guards/jwt-auth.guard' import { CurrentUser } from '../common/decorators/current-user.decorator' import { UsersService } from './users.service' import { CreateUserDto } from './dto/create-user.dto' import { UpdateUserDto } from './dto/update-user.dto' import { Pagina...

Details

Author
sabahattink
Repository
sabahattink/antigravity-fullstack-hq
Created
8 months ago
Last Updated
5 days ago
Language
PowerShell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category