JSON Express favors convention over configuration
But when you need customization, simply create a config.json
file in the same directory as your JSON data files.
$ cd your/server/dir
# Create config.json in your project directory
$ echo '{"PORT": "8080"}' > config.json
Available configuration options are below
{
"PORT": "8080"
}
Here is a sample folder structure
your-server-dir/
├── config.json # Optional configuration
├── albums.json # Your json file
├── artists.json # Your json file
└── ...