Step by Step Guideline
Manage the environment variables in node app easiest way.
Clone the repo
git clone https://github.com/bmshamsnahid/Manage-Node-App-EnvironmentInstall dependencies
npm iCreate .env file just like .envExample and copy the content from .envExample to .env.
Your newly created .env file should be look like
foo=bar
Now run the app
npm startor
node index.jsTo test the module, run
npm testMIT