The seed for pretty much any api I write in node.js
npm i pm2 -g
- Set your app info in the package.json file
- Go through the todo's in the seed api and make decisions based on your needs.
The Twelve-Factor App Recommends not storing your config in files, there are some pretty good reasons for and against this which can be read here. In my personal experience and based on how my projects run, I find that the advantages of file-based far outweigh the downsides, feel free to disagree. If you would prefer pure env config, check out dotenv or simply update the config code here to not load from file.
We use winston to route our logs to various places as required, and override console.x as per this article here to allow us to see what's happening with dependencies we may be using.