Skip to main content

8 docs tagged with "environment"

View all tags

Data-mapping utilities

These utilities enable you to convert from one data representation to another within an application, with a particular focus on transforming server row data. They offer a systematic approach to managing data conversion between Data Transfer Objects (DTOs) and entities, ensuring consistency and maintainability.

Decorators utilities

You can use the decorator utilities to enhance component behaviour and development efficiency within TypeScript projects. Specifically, the renderOnChange decorator automates the re-rendering process of components upon property changes, using the Genesis framework for web development.

Environment Files

The genx run and genx build commands read the contents of the client/.env file to set global variables in the client build. For the typescript compiler to work these values must also be declared in the client/globals.d.ts file. This section covers environment file configuration and the Environment Indicator component for displaying environment information in your application.

Environment Indicator

The Environment Indicator component provides a visual way to display the current environment (e.g., DEV, PROD, TEST) in your application. It can be configured to show different colors, icons, and labels based on the environment level.

Environment utilities

The environment utilities enable you to manage and access environment-specific settings and variables. This enables you to configure application behaviour based on the current environment. This category includes utilities for identifying the development environment and securely accessing environment variables.

Error utilities

Error utilities provide a sophisticated system for managing errors within your application. Using TypeScript interfaces and types, they provide a structured approach to recording, accessing, and logging errors.

Utility methods

The @genesislcap/foundation-utils package provides a collection of utility services and helpers designed to simplify common development tasks within Genesis applications. It aims to enhance productivity by offering reusable solutions for patterns and problems encountered across different projects.

Window utilities

These utilities enable you to control interaction with the browser window and to ascertain the application's runtime environment, enhancing the adaptability and user experience of web applications.