{"repo":"it-gorillaz/configify","free":true,"listed":false,"github":"https://github.com/it-gorillaz/configify","clone":"git clone https://github.com/it-gorillaz/configify.git","description":"NestJS Config on Steroids","language":"TypeScript","stars":206,"topics":["aws","configuration","nestjs","typescript"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"@itgorillaz/configify NestJS config on steroids configify configify is a NestJS configuration module that simplifies loading, validating, and injecting configuration from environment variables, config files, and remote secret managers. Installation --- Quick Start Import ConfigifyModule into your root module using forRootAsync() : TypeScript strict mode: If you have \"strict\": true in your tsconfig.json and you are not using constructor configuration injection, you must also set \"strictPropertyInitialization\": false . This is required because configify initializes configuration properties at runtime. --- Configuration File Discovery By default, configify looks for the following files in the root of your project : All three formats are supported and can be used together. You can also customize the file paths. --- Mapping Configuration Classes Decorate any class with @Configuration() and configify will automatically discover it, populate its properties, and make the instance available for dependency injection throughout your application. From a .env file From a .yml file Splitting one file into multiple configuration classes A single config file can be split across multiple configuration classes to keep concerns separated: Mapping Configuration Classes with Constructor Injection Decorate your configuration class with @RequiredArgsConstructor() and configify will automatically create the instance of the configuration class passing the configuration values as an object to the cons","default_branch":null,"files":null,"tree":[],"storefront":"/r/it-gorillaz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/it-gorillaz/configify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}