Skip to content

GNX - Utilities

GNX is a collection of packages that can be used together or separately. The core package isn’t required to use the other packages, but each package has a peer dependency on some of the other packages. For example, the @gnx-utilities/services package has a peer dependency on the @gnx-utilities/models package. This means that you can install the @gnx-utilities/services package without installing the @gnx-utilities/models package, but you will get an error if you try to use the @gnx-utilities/services package without installing the @gnx-utilities/models package.

Packages

Core

The core package is the base package for all the other packages. It contains the base classes and interfaces that are used by the other packages. It also contains the @gnx-utilities/core package, which is used to create decorators for repositories and services.

Models

The models package contains the base classes and interfaces that are used to create models. It also contains the @gnx-utilities/sequelize and @gnx-utilities/mongoose packages, which are used to create models for SQL and NoSQL databases.

Services

The services package contains the base classes and interfaces that are used to create services.

Decorators

The decorators package contains the base classes and interfaces that are used to create decorators. It also contains the @gnx-utilities/decorators package, which is used to create decorators for repositories and services.

Validators

The validators package contains the base classes and interfaces that are used to create validators. It also contains the @gnx-utilities/validators package, which is used to create validators for every property or value it doesn’t mater if it is a repository or service or your own custom implementation.

Controllers

The controllers package contains the base classes and interfaces that are used to create controllers. It also contains the @gnx-utilities/controllers package, which is used to create controllers for repositories and services.

Installation

You can install the packages using npm, pnpm, yarn or bun.