Handle secrets like API keys securely in javascript projects with environment variables
In this video we look at how to effectively use the dotenv npm package to securely use secrets like API keys by loading them into your project as environment variables. To do this we first place our secrets in a .env file and the dotenv project will load these in as env variables.
You can find a copy of the code used in this video in my public GitHub repository - https://github.com/mackenziejj/node-env-example