alto-martin / nestjs-load-config-based-on-env

nestjs load script configuration based on node env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nestjs-load-config-based-on-env

load ts cofnig based on NODE_ENV

Installing

$ yarn

Running

Starting the server with dev mode

$ yarn start:dev
server started at http://localhost:3000

test it:

$ curl http://localhost:3000
CONFIG_DEV

Starting the server with prod mode

$ yarn start:prod
server started at http://localhost:3000

test it:

$ curl http://localhost:3000
CONFIG_PROD

About

nestjs load script configuration based on node env


Languages

Language:TypeScript 79.2%Language:JavaScript 20.8%