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)


-----
Alain Mouette



A 9 de outubro de 2016 02:56:20 Anirban Bhattacharya <anirbanbhattacharya1...@gmail.com> escreveu:

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?

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/8097583f-e0a1-48b0-a74e-4c1b6ae63299%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/157a95d6dd8.2782.962c06d43ba9274da034cf7d02472879%40bonseletrons.com.br.
For more options, visit https://groups.google.com/d/optout.

Reply via email to