Configuring Environment Variables in Node.js

preview_player
Показать описание


00:55 Linux / UNIX (e.g. MacOS) syntax
01:20 Windows CMD syntax
02:18 cross-env package
05:44 .env file with secrets
07:06 eval command
08:25 export command
10:09 .gitignore file
11:14 dotenv package
12:14 node-env-run package

Рекомендации по теме
Комментарии
Автор

I like people with the approach of "straight to the point"..you are one of them! thanks for the great tutorial. +1 subs

noreddine
Автор

This is by far the most "Straightforward and Enlightening" lesson on youtube about environment variable configuration!

ogwurupatrick
Автор

That was a very helpful approach of explanation. I managed to debug and fix my environmental variables issue I had. Thank you sir.

sev
Автор

Thank you. I've looked all over the place and got a very minimal understanding of .env files. In fact, how they exist in their current form isn't at all how I anticipated. I appreciate the thorough showcase of all the modules to assist. Keep up the good work ;)

LostInAutism
Автор

Perfect video. Very focused and to-the-point, no fluff. Easy sub.

darinweaver
Автор

This video is jam packed with knowledge, really loved it. Thank you.

hiteshchalise
Автор

Thanks... I recommend you post this on stack overflow

kennedychidi
Автор

Video was sooo good, had no choice but to subscribe! Thank you

temitopeakinsoto
Автор

Code Realm back at it again. I WAS HERE. In time you will have many followers friend. I appreciate your response to comments and want to say you do tutorials the best in my opinion and I wish we had mass content from you, but am incredibly thankful for what you do put out.
My?: I've been using MacOS as an environment for some time professionally to code. I've been debating using Ubuntu instead as I'm not a huge fan of Windows. May you consider an OS video in which you briefly explain the different OS environments, what to expect from a software engineer perspective/focus, the pros and cons of each, and what personal machine you use with Ubuntu? Also, it would be great to hear your story in a video at some point if you are comfortable. Did you get a CS degree, teach yourself, attend an immersive Bootcamp program, and what your focus is in your current career? What are tips you would share with new aspiring developers and engineers alike for digging beyond the surface level of learning and into learning and understanding the knowledge you are teaching in your videos and what you utilize in your day to day workplace? Thanks for your time creating and editing these videos for our benefit. Cheers!

Codecrafting
Автор

This is by far the best explanation that you could ever find ! Thx SIR

mamunmokni
Автор

Great video, really helpful. Thank you.

achinthapremarathne
Автор

you come straight to point, I love it ... thanks for the help man..really appreciate it

gowthambhat
Автор

Wow man your content is amazing!!! you deserve more than 200k followers! I am just curious how many years of experience you have?

Este
Автор

Perfectly concise. Answered my questions.

codingcruxes
Автор

Thank you! Excellent Tutorial. Very clear and comprehensive

myhendry
Автор

1. you don't have to install something globally to run "npx something"
2. to avoid extra space you can wrap the value in single quotes, e.g. "set NODE_ENV='development' && otherstuff..."

beriteri
Автор

Thanks Bro was confused why undefined was coming in console export $(cat .env) works like charm
But a question when i deploy my app to any cloud platform like heroku or any other does it work. means they just ask for environment variables while hosting during production

atulsharma
Автор

When i use eval in command prompt it works but when i add in package.json under scripts, i'm getting "eval is not recognized as an internal or external command"..Need ur inputs pls...

priyavenkatachalam
Автор

5:50 I think most people are interested in the video from this point where he starts to speak about .env files for different environment

wwnshnr
Автор

set NODE_ENV=development&&node app.js for windows! THANK YOU SO MUCH !!

agdmnm