DGraph binary needs 4 parameters to run the service
mutations dir, postings dir, port, UIDs dir.
My proposal is all of them should have default values. So the user just needs to run the binary without any arguments.
The default config should be stored in ~/.dgraphrc by default or /etc/dgraph/dgraph.conf.
The user has to pass a path to a new config file to run dgraph under different options.
The directories for postings, mutations, UIDs can be in ~/.dgraph folder.
In Production, When there is a large amount of data, they have to be separate. For trial runs and debugging, this is pretty simple to work with.
Also having a config file will help us scale the codebase better if new options have to be added.