0.0.10 • Published 5 months ago

loosof v0.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Loosof Shared Library

A shared library for microservices.

Installation

To install this library, run the following command:

yarn add loosof

Usage

import { services } from 'loosof';

How to Publish the library to NPM Registry

1️⃣ Build the library

yarn build

2️⃣ Login to NPM Registry

npm login

3️⃣ Publish the library

npm publish

Using the Loosof Shared Library Locally

This guide outlines the steps to set up and use the Loosof shared library in your local development environment.

📌 Prerequisites

  • Ensure you have Node.js v20 installed.
  • Yarn package manager is required.

🚀 Steps to Use the Library Locally

1️⃣ Clone the Repository Clone the shared library repository to your local machine:

git clone <repository-url>

2️⃣ Navigate to the Root Directory

Change into the root directory of the cloned repository:

cd shared-library/

3️⃣ Install Dependencies

Run the following command to install required dependencies:

yarn install

4️⃣ Build the Module

Compile the shared library by running:

yarn build

5️⃣ Link the Module Locally

Create a global link for the module:

npm link

6️⃣ Link the Library in Your Service

Navigate to the service (e.g., API-Gateway) where you want to use the Loosof library and link it:

cd <service-directory>
npm link loosof

7️⃣ Usage in Code

Now, you can import and use the library in your service:

import {ServiceNames} from 'loosof';
0.0.10

5 months ago

0.0.8

5 months ago

0.0.9

5 months ago

0.0.7

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

6 months ago

0.0.2

6 months ago