Using env variables in NodeJS

You can set and use environment variables within NodeJS processes as below:

Windows:

Unix:

and inside your app javascript you can check across this as

 

Leave a Reply