I have a settings.json file containing a bunch of information including username and password for the application I'm creating. Something like:
{
"application": {
"username": "someuser",
"password": "somepassword",
}
}
I am fairly new to software development especially making open source applications and deploying them so I would like to know what is the best practice in this case. Let's say I'm publishing it on GitHub and I would like the settings.json to be available as well with the correct structure but not containing my private data. However, I would like to have it locally with the data because I use it for testing.
Should I have two files maybe settings-local.json and settings-prod.json or what?
Thank you.