百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nestjs-project-template

> 后端框架
开源

NestJS Bun 项目模板,骨架. Auth, Better-Auth, Prisma, MongoDB, Pino, Docker。

190 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

NestJS Bun 项目模板,骨架. Auth, Better-Auth, Prisma, MongoDB, Pino, Docker。

Nest JS Project Template

A modern NestJS project structure with best practices using Fastify, Prisma, MongoDB, and Bun runtime. and more

Documentation

  • Installation and Running Guide
  • Project Architecture | Chinese
  • Docker Deployment Guide
  • Cloud Storage Integration Guide (Chinese) | English
  • OAuth Authentication Guide (Chinese) | English
  • Mailer Module Guide (Chinese) | English

commit Doc

  • Commit Convention

Tech Stack

  • Runtime: Bun for JavaScript & TypeScript
  • Framework: NestJS 10.x with Fastify
  • Database: MongoDB with Prisma ORM
  • Compiler: SWC for TypeScript (Built into Bun)
  • Package Manager: pnpm → Package Manager: Built-in Bun package manager
  • Authentication: Better Auth with OAuth support
  • Documentation: Swagger/OpenAPI
  • Validation: class-validator with DTOs
  • Logging: Pino for structured logging
  • Testing: Jest → Testing: Built-in Bun test runner
  • Linting: Biome for fast linting and formatting
  • Storage: Multi-cloud storage support (Alibaba Cloud OSS, Tencent Cloud COS, Amazon S3)

Features

  • Architecture: Modular architecture with proper separation of concerns
  • Configuration: Environment management with @nestjs/config and Joi validation
  • Exception Handling: Global exception handling and request/response transformation
  • Database: MongoDB integration with Prisma ORM, migrations, and data seeding
  • Caching: Redis integration with @nestjs/cache-manager and ioredis
  • Logging: Structured logging with Pino and pino-datadog-transport
  • Documentation: API documentation with Swagger (@nestjs/swagger)
  • Authentication:
    • Email sign-in/sign-up with Better Auth
    • Social authentication with multiple providers (Google, GitHub, Facebook, Twitter, Microsoft, LinkedIn, GitLab, Discord, Apple, etc.)
    • Enhanced security with session management and CSRF protection
  • Authorization: Role-based access control with Admin and User base roles
  • Storage: Unified cloud storage interface with multiple provider support (AWS S3, Alibaba OSS, Tencent COS)
  • Email: Templated email sending with Nodemailer and MJML
  • Internationalization: Multi-language support using nestjs-i18n
  • Payments: Stripe integration for payment processing
  • Testing: Comprehensive unit and E2E testing setup with Bun test runner
  • CI/CD: Continuous integration with GitHub Actions (with multi-platform support)
  • Performance: Optimized with Fastify and Bun runtime
  • Development: Git hooks with Husky and conventional commits
  • Containerization: Docker support for development and production

Getting Started

For installation and running instructions, please see the Installation and Running Guide.

develop plan

  • plan

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptbetter-authbiomeboilerplatebun

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架