How to Use Environmental Variables (.env) Files

preview_player
Показать описание
In this video tutorial I'll be demonstrating the usage of Environmental Variables (.env) Files in software projects.

Support me on Patreon:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

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

Very good explanation, I learned a lot from this but, should I swap my config.json to an .env file? Because from the looks of it, the .json file I made does the exact same thing haha as the .env file you demonstrated.

mayyuhan
Автор

Thank you! But what could be the solution when the path contains spaces? for example C:/projects/good projects?
Trying to add “ will not work since the package phpdotenv will always append .env in the end

theobellash
Автор

I have this problem i cant fix, where when i name my file and .env it, VSC dont read the env format. Do you know why?

nordic-walking-adventures
Автор

nice vid bro, didnt even know what env stood before.

fhaynesfhaynes
Автор

do i need to install any dependecy for using Envrironment variable ?

vaibhavmavani
Автор

Thank you very much for the tutorial. It was very helpful. But, what's the point? With the .env file in my root folder, any attacker or hacker can easily read its contents. Or are my missing something?

NedumEze
Автор

Thanks buddy for this; so there is no way a malicious user can console.log those values in their browsers (in case we use Javascript)!?

Or I'm just being paranoid

Greetings from Tanzania 🇹🇿

raymondmichael