You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
Need a suggestion on what is best practice to uave and utilise configs in nodejs?? In java we keep properties files. In google I found multiple ways of doing. What is best practice?? Have to store host, username,pwd,api url etc.
Also any website where we have nodejs best practices listed?
Alain Mouette
unread,
Oct 9, 2016, 3:14:16 PM10/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
I have seen many people using a dual system.
- All non confidential information in a config file, I like sysconfig.json
and read it with cjason to have comments
- all confidential info in environment variables, or using "envload" and a
.env file (in gitignore)