1.0.16 • Published 9 months ago

@tickbytes/common v1.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Ticketbytes Shared Library

This repository contains the common library for Ticketbytes (JS with type declarations), a ticket sales platform. The library is used across multiple microservices in the Ticketbytes ecosystem.

Overview

The purpose of this shared library is to maintain consistent business logic, data models, interfaces, utilities, and other shared functionalities across all microservices. By using this common library, we ensure that changes in business logic or data models can be made in one place and propagated across all services.

Structure

The library is organized into several directories, each corresponding to different types of shared code:

  • models/: This directory contains shared data models.
  • utils/: This directory includes various utility functions and classes.
  • interfaces/: This directory holds TypeScript interfaces that are used across services.
  • constants/: This directory contains any constants shared across the services.
  • middleware/: This directory is for shared Express middleware.

How to use

To use this library in your service, follow these steps:

  1. Installation:

    Include the shared library in your package.json file:

    {
      "dependencies": {
        "ticketbytes-shared-library": "version"
      }
    }

Then, run the following command to install it:

npm install

Usage:

Import the functions or classes you need in your service:

usefulFunction();
1.0.16

9 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.9

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago