@fresam23/shared-lib
v1.0.16
Published
A shared library for Oneness e-learning applications
Downloads
290
Readme
Shared Library
Oneness e-learning platform reusable DTOs, configs, decorators, enums, interfaces, and constants for API Gateway and microservices.
Features
- DTOs: Common Data Transfer Objects for consistent API contracts.
- Configs: Centralized configuration files for shared settings.
- Decorators: Custom decorators for validation, authorization, and more.
- Enums: Shared enumerations for status codes, roles, and other constants.
- Interfaces: Shared TypeScript interfaces for type safety across services.
- Constants: Frequently used values for error messages, limits, etc.
- Factories: Centralized client proxy generation and registry.
Installation
npm install @fresam23/shared-libUsage
Import the required modules in your service or API Gateway:
import { EurekaConfig, PostgresDbConfig } from '@fresam23/shared-lib';Folder Structure
dtos/– Data Transfer Objectsconfigs/– Configuration filesdecorators/– Custom decoratorsenums/– Enumerationsinterfaces/– TypeScript interfacesconstants/– Constant valuesfactories/– Abstract factory methods
Contributing
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
License
© 2025 Oneness e-Learning Project. All rights reserved.
Oneness™ is a trademark of the Oneness e-Learning Project.