@ksoftdev/core
v1.0.35
Published
> **Note**: This package is for development and exploration purposes only. It is part of a learning project for microservices architecture with Node.js and should not be used in production environments.
Readme
@ksoftdev/core
Note: This package is for development and exploration purposes only. It is part of a learning project for microservices architecture with Node.js and should not be used in production environments.
A shared library package containing common utilities, types, and middleware for the ticketing application microservices.
Installation
npm install @ksoftdev/coreFeatures
This package provides shared functionality across microservices, including:
- Common types and interfaces
- Authentication middleware
- Error handling utilities
- Shared services
- Constants and configuration
Usage
JWT_SECRET=<your-secret-key-here>import {
// Import the components you need
} from '@ksoftdev/core';Development
Prerequisites
- Node.js
- npm
Scripts
npm run clean- Remove the build directorynpm run build- Clean and build the packagenpm run publish:auto- Automatically version, build, and publish the package
Building
npm run buildDependencies
Production Dependencies
- axios
- bcrypt
- dotenv
- express
- jsonwebtoken
- zod
Development Dependencies
- @types/bcrypt
- @types/express
- @types/jsonwebtoken
- rimraf
- typescript
