node config json code example
Example 1: install config react js
$ npm install config$ mkdir config$ vi config/default.json
Example 2: nodejs config file
{
"app": {
"port": 3000
},
"db": {
"host": "localhost",
"port": 27017,
"name": "ydb"
}
}