In today's video I'll take you through using .env files in NodeJS - this is done using the popular "dotenv" package.
.env files are used to store environment-specific configuration or settings for your application so it can easily be ran on various environments. Things like database credentials, API keys or URLs for 3rd party resources can be stored in them.
For your reference, check this out:
https://www.npmjs.com/package/dotenv
???? My Udemy Courses - https://www.udemy.com/user/domenic-corso/
???? Download my VS Code theme - https://marketplace.visualstudio.com/items?itemName=dcode.dcode-theme
???? Join my Discord Server - https://discord.gg/TXMQyvbpcA
???? Find me on Twitter - https://twitter.com/dcodeyt
???? Support me on Patreon - https://www.patreon.com/dcode
???? Follow me on DEV Community - https://dev.to/dcodeyt
???? Join this channel to get access to perks - https://www.youtube.com/channel/UCjX0FtIZBBVD3YoCcxnDC4g/join
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript