π¨π»βπ» I made DevPayHub for solo devs. Payments & users handled.
https://devpayhub.com
Learn to use dotenv and environment variables to configure a node application.
π My Courses
https://www.udemy.com/user/wittcode/
π» My Software
https://chromewebstore.google.com/search/wittcode
π¨βπ» Download Code
https://wittcode.com
β Timestamps
0:00 - Introduction
0:10 - What are Environment Variables?
0:54 - Purpose of Environment Variables
1:32 - Environment Variables and Node
3:02 - Providing Environment Variables Directly
3:59 - Providing Environment Variables with Configuration Variables
4:42 - What is a .env File?
5:47 - .env File Security
6:29 - What is dotenv?
7:52 - Accessing Environment Variables with dotenv
8:52 - Multiple .env files with dotenv
10:53 - Outro