{"repo":"MiguelCovarrubiasdaiz/nest-structure","free":true,"listed":false,"github":"https://github.com/MiguelCovarrubiasdaiz/nest-structure","clone":"git clone https://github.com/MiguelCovarrubiasdaiz/nest-structure.git","description":"Hexagonal NestJS boilerplate, local/S3 storage, React Email and module scaffolding.","language":"TypeScript","stars":12,"topics":["boilerplate","hexagonal-architecture","nestjs","pnpm","postgresql","react-email","typescript","docker","jwt"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Nest Hexagonal Boilerplate Boilerplate de NestJS + TypeScript + Drizzle ORM (PostgreSQL) + Storage configurable (local o S3) + Mail con react.email + Auth JWT (access + refresh) con bcrypt, todo con arquitectura hexagonal simple y copiable. Usa pnpm . Stack - NestJS 10 + TypeScript estricto - Drizzle ORM ( postgres-js ) — schemas en TS puro, sin codegen - Auth : JWT con @nestjs/jwt (access + refresh tokens) + bcrypt para hashing de password, guard global con @Public() opt-out - Storage : driver local o s3 seleccionable por env (compatible con MinIO/R2) - Mail : templates con React Email + transport smtp (nodemailer) o log (dev) - class-validator + class-transformer para DTOs y validación de env - @nestjs/config con validación tipada - Swagger en /api/docs (con Authorize para Bearer token) - Postman : colección lista en postman/nest-hexagonal-auth.postman collection.json Estructura Las 3 reglas hexagonales 1. Domain no importa de application/ ni infrastructure/ , ni de @nestjs/ . Es TypeScript puro. 2. Application sólo importa de domain/ y de ports de shared/ . Define casos de uso que dependen de ports (interfaces). 3. Infrastructure implementa los ports y expone los casos de uso (controllers, repos, gateways). El módulo Nest hace el binding. Cambiar DB, storage o mail = escribir otro adapter; los use-cases y el dominio no se tocan. Storage (local ↔ s3 por env) Mail con React Email Los templates son componentes React ( .tsx ) tipados. El port ( MailService ) recibe el JSX y el","default_branch":null,"files":null,"tree":[],"storefront":"/r/MiguelCovarrubiasdaiz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MiguelCovarrubiasdaiz/nest-structure/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}