This is dotenv's implementation example in a simple NodeJS project.
- Clone the repository
git clone https://github.com/yunanhelmy/nodejs_dotenv.git
- Create a new file named
.env
, add it's content fromenv.example
- Go to directory
cd nodejs_dotenv
- run server
node index.js