nano-service is a lightweight, efficient messaging library written in TypeScript
Find a file
qpismont 765af2700d
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test/1 Pipeline was successful
ci/woodpecker/push/test/2 Pipeline was successful
ci/woodpecker/push/test/3 Pipeline was successful
upgrade deps
2024-07-31 20:47:07 +02:00
.vscode update to bun 1.0.26 2024-02-08 20:20:11 +01:00
.woodpecker upgrade to bun 1.1.10 + deps 2024-05-27 18:54:16 +02:00
src add srv params in handler + upgrade deps 2024-04-10 19:46:07 +02:00
tests add srv params in handler + upgrade deps 2024-04-10 19:46:07 +02:00
.gitignore update gitignore 2024-04-01 19:24:01 +02:00
biome.json upgrade to bun 1.1.10 + deps 2024-05-27 18:54:16 +02:00
bun.lockb upgrade deps 2024-07-31 20:47:07 +02:00
LICENSE add readme + mit licence 2023-10-19 22:07:44 +02:00
package.json upgrade deps 2024-07-31 20:47:07 +02:00
README.md fix readme file ext 2023-10-19 22:08:44 +02:00
tsconfig.build.json bun bun bun 2024-01-30 21:50:19 +01:00
tsconfig.json upgrade to bun 1.0.33 + upgrade deps 2024-03-20 20:21:35 +01:00

nano-service

nano-service is a lightweight, efficient messaging library written in TypeScript, enabling seamless communication between services using message brokers. It is designed to integrate with the NATS messaging system, providing an easy-to-use API to create a robust microservices environment.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Node.js 20 or higher. You can download and install Node.js from nodejs.org.
  • You have a working knowledge of TypeScript.
  • You have access to a NATS server (if you're planning to use the library in a production environment).

Development

To start working with nano-service, you need to clone the project and use it in your TypeScript applications. Follow these steps:

Clone the repository

Start by cloning the nano-service repository to your local machine. Use the following command:

git clone https://gitea.qpismont.fr/qpismont/nano-service

Navigate to the cloned repository

cd nano-service

In the nano-service directory, use npm to create a symbolic link to the library globally on your system:

npm link

This command makes the nano-service library available globally on your machine.

Using nano-service in your project

Navigate to your project's directory where you want to use nano-service. You can then link the globally linked nano-service library to your project using the following command:

npm link nano-service

This command links the nano-service package to your project, allowing you to import and use it in your TypeScript files.

Testing

This project uses Jest for testing. To run tests, navigate to the project directory and run:

npm run test

Ensure any new code contributions are well-tested through Jest.

Linting

The project utilizes ESLint to maintain a consistent, high-quality codebase. To lint the project, execute:

npm run lint

Please ensure your contributions adhere to the established ESLint rules.

License

nano-service is available under the MIT License. See the LICENSE file for more info.