MCPcopy Index your code
hub / github.com/brocoders/nestjs-boilerplate

github.com/brocoders/nestjs-boilerplate @1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.0 ↗ · + Follow
439 symbols 803 edges 168 files 0 documented · 0% updated 4d ago★ 4,34311 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NestJS REST API boilerplate 🇺🇦

image

github action status renovate Static Badge Discord Badge

Description

NestJS REST API boilerplate for a typical project

Full documentation here

Demo: https://nestjs-boilerplate-test.herokuapp.com/docs

A fully compatible frontend boilerplate: https://github.com/brocoders/extensive-react-boilerplate

Belongs to the bc boilerplates ecosystem

Table of Contents

Features

  • [x] Database. Support TypeORM and Mongoose.
  • [x] Seeding.
  • [x] Config Service (@nestjs/config).
  • [x] Mailing (nodemailer).
  • [x] Sign in and sign up via email.
  • [x] Social sign in (Apple, Facebook, Google, Twitter).
  • [x] Admin and User roles.
  • [x] Internationalization/Translations (I18N) (nestjs-i18n).
  • [x] File uploads. Support local and Amazon S3 drivers.
  • [x] Swagger.
  • [x] E2E and units tests.
  • [x] Docker.
  • [x] CI (Github Actions).

Contributors

Vladyslav Shchepotin Vladyslav Shchepotin 🚧 📖 💻 SergeiLomako SergeiLomako 💻 Elena Vlasenko Elena Vlasenko 📖 Rodion Rodion 💼

Support

If you seek consulting, support, or wish to collaborate, please contact us via boilerplates@brocoders.com. For any inquiries regarding boilerplates, feel free to ask on GitHub Discussions or Discord.

Extension points exported contracts — how you extend this code

IPaginationOptions (Interface)
(no doc)
src/utils/types/pagination-options.ts
SocialInterface (Interface)
(no doc)
src/social/interfaces/social.interface.ts
FacebookInterface (Interface)
(no doc)
src/auth-facebook/interfaces/facebook.interface.ts
MailData (Interface)
(no doc)
src/mail/interfaces/mail-data.interface.ts

Core symbols most depended-on inside this repo

create
called by 13
src/users/users.service.ts
findOne
called by 13
src/users/users.controller.ts
findById
called by 12
src/users/users.service.ts
validateConfig
called by 9
src/utils/validate-config.ts
update
called by 8
src/auth/auth.service.ts
toDomain
called by 7
src/users/infrastructure/persistence/relational/mappers/user.mapper.ts
toDomain
called by 7
src/users/infrastructure/persistence/document/mappers/user.mapper.ts
findByEmail
called by 6
src/users/users.service.ts

Shape

Class 258
Method 162
Function 10
Enum 5
Interface 4

Languages

TypeScript100%

Modules by API surface

src/auth/auth.service.ts16 symbols
src/auth/auth.controller.ts14 symbols
src/users/users.service.ts10 symbols
src/users/infrastructure/persistence/relational/repositories/user.repository.ts10 symbols
src/users/infrastructure/persistence/document/repositories/user.repository.ts10 symbols
src/session/session.service.ts9 symbols
src/session/infrastructure/persistence/relational/repositories/session.repository.ts9 symbols
src/session/infrastructure/persistence/document/repositories/session.repository.ts9 symbols
src/users/users.controller.ts8 symbols
src/users/dto/query-user.dto.ts6 symbols
src/mail/mail.service.ts6 symbols
src/files/infrastructure/uploader/local/files.controller.ts5 symbols

Dependencies from manifests, versioned

@aws-sdk/client-s33.583.0 · 1×
@aws-sdk/s3-request-presigner3.583.0 · 1×
@commitlint/cli19.3.0 · 1×
@commitlint/config-conventional19.2.2 · 1×
@nestjs/cli10.3.2 · 1×
@nestjs/common10.3.8 · 1×
@nestjs/config3.2.2 · 1×
@nestjs/core10.3.8 · 1×
@nestjs/jwt10.2.0 · 1×
@nestjs/mongoose10.0.6 · 1×
@nestjs/passport10.0.3 · 1×
@nestjs/platform-express10.3.8 · 1×

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add nestjs-boilerplate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact