Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wayou/nestjs-load-config-based-on-env
nestjs load script configuration based on node env
https://github.com/wayou/nestjs-load-config-based-on-env
configuration nestjs
Last synced: 26 days ago
JSON representation
nestjs load script configuration based on node env
- Host: GitHub
- URL: https://github.com/wayou/nestjs-load-config-based-on-env
- Owner: wayou
- Created: 2020-06-24T15:40:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T03:05:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T23:35:31.125Z (2 months ago)
- Topics: configuration, nestjs
- Language: TypeScript
- Homepage:
- Size: 2.08 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nestjs-load-config-based-on-env
load ts cofnig based on `NODE_ENV`
## Installing
```sh
$ yarn
```## Running
### Starting the server with `dev` mode
```sh
$ yarn start:dev
server started at http://localhost:3000
```test it:
```sh
$ curl http://localhost:3000
CONFIG_DEV
```### Starting the server with `prod` mode
```sh
$ yarn start:prod
server started at http://localhost:3000
```test it:
```sh
$ curl http://localhost:3000
CONFIG_PROD
```