When building any kind of server side app, you will eventually have the following thoughts:
- I would like to bind my app to a specific port.
- I would like to enter a connection string so I can connect to my database.
- I would like to use a third-party service through a provided API key or credentials.
Given values to these kinds of parameters will yield a configuration. It is a crucial part of the system as our application will have lots of configurable elements, so it must be handled properly throughout the codebase.
In this article, we will look at the DOs and DON’Ts of Node config handling.Technology