A modern NestJS project structure with best practices using Fastify, Prisma, MongoDB, and SWC. and more
- Installation and Running Guide
- Cloud Storage Integration Guide (Chinese) | English
- OAuth Authentication Guide (Chinese) | English
- Mailer Module Guide (Chinese) | English
- Framework: NestJS 10.x with Fastify
- Database: MongoDB with Prisma ORM
- Compiler: SWC for TypeScript
- Package Manager: pnpm
- Authentication: JWT with Passport
- Documentation: Swagger/OpenAPI
- Validation: class-validator with DTOs
- Logging: Pino for structured logging
- Testing: Jest
- Linting: ESLint with TypeScript rules (inspired by brocoders/nestjs-boilerplate)
- Storage: Multi-cloud storage support (Alibaba Cloud OSS, Tencent Cloud COS, Amazon S3)
- Modular architecture with proper separation of concerns
- Global exception handling and request/response transformation
- Database integration with Prisma ORM
- Structured logging
- API documentation with Swagger
- Configuration management with validation
- Authentication and authorization with multiple OAuth providers (Google, GitHub, Facebook, Twitter, Microsoft, Discord, Apple)
- Unit and e2e testing setup
- Performance optimized with Fastify and SWC
- Git hooks with Husky and conventional commits
- Unified cloud storage interface with multiple provider support
For installation and running instructions, please see the Installation and Running Guide.