DEV Community

Discussion on: Daily Hacktoberfest Miscellaneous discussion (October 2nd)

Collapse
 
rubiin profile image
Rubin • Edited

Help needed . There are couple of issues. contributions are welcome

GitHub logo rubiin / nestjs-easyconfig

Manage configs on the go 🔥

Nest Logo

.

<p align="center">

Package License
NPM Downloads
circleci


Description

Nestjs-easyconfig loads configs from your .env (Wraps dotenv module) ⚙️ 🔥

Installation

$ npm install nestjs-easyconfig
$ yarn add nestjs-easyconfig

Usage

With config file supplied (basic):

import { Module } from '@nestjs/common'
import { EasyconfigModule } from 'nestjs-easyconfig'
@Module({
  imports: [EasyconfigModule.register({ path: './config/.env' })]
})
export class AppModule {}

With config file supplied and safe set to true:

import { Module } from '@nestjs/common';
import { EasyconfigModule } from 'nestjs-easyconfig';

@Module({
  imports: [EasyconfigModule.register({ path: './config/.env', safe: true })],
})
export class AppModule {}

By default safe is set to false. When safe is set to true, the module compares the supplied env file with the sample env file to find missing keys. If…

GitHub logo rubiin / nest-pgpromise

A Module for Utilizing Pg-promise with NestJS

Nest Logo

pg-promise Module for Nest framework

NPM Version Package License NPM Downloads

Buy Me A Coffee

Description

This's a nest-pgpromise module for Nest This quickstart guide will show you how to install and execute an example nestjs program..

This document assumes that you have a working nodejs setup in place.

Download from NPM

npm install --save nest-pgpromise

Initialize

You need five items in order to connect to MinIO object storage server.

Params Description
host Host address.
port TCP/IP port number.
database The name of db to connect to.
username The username to access db.
password The username's password

Provide the credentials for minio module by importing it as :

As Connection object

import { Module } from '@nestjs/common'
import { NestPgpromiseClientController } from './nest-pgpromise-client.controller'
import { NestPgpromiseModule } from '../nest-pgpromise.module'
@Module({
  controllers: [NestPgpromiseClientController],
  imports: [
    NestPgpromiseModule.register({
      connection: {
        host: 'localhost'