Skip to content

APPNEURAL-Packages/adminnexus-common

Repository files navigation

adminnexus-common

adminnexus-common is the shared NestJS toolkit powering every AdminNexus microservice. It centralizes constants, DTOs, decorators, guards, filters, interceptors, Kafka helpers, Mongo helpers, logging, and reusable utilities so the 76+ services can stay consistent and focused on domain logic.

Installation

npm install @appneural/adminnexus-common

Features

  • Standardized constants, enums, DTOs, and schemas for tenant-aware APIs.
  • Decorators and guards for auth, tenant, org, and API-key handling.
  • Interceptors and filters for consistent logging, response wrapping, timeouts, and error handling.
  • Kafka helpers (producer, consumer, config, event base class) built on kafkajs.
  • Mongo helpers (dynamic module, base repository) on top of mongoose.
  • Shared utilities (crypto, uuid, otp, etc.) plus a pino logger module.

Usage

  • Import the desired pieces from @appneural/adminnexus-common.
  • Register KafkaModule.forRoot() and MongoModule.forRoot() with your configuration in each service module.
  • Apply guards, decorators, interceptors, and filters as needed to keep APIs consistent.
  • Call LoggerService wherever you need structured logs.

Building

npm run build

About

Shared common library for all AdminNexus microservices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors