theguestbook/theguestbook-server — pull request #1 by thebradbain (2013-10-01 04:14:28+00:00)
Title: MongoDB 'private' configuration file

Note that all our source code is available for the world to see (Hello, world!).
Also note that we use a private database that requires authentication.

Thus by sharing _everything_ we share our private passwords. Hence we have reached a dilemma.

### Solution?

There is a private file within mongoose-models, conf.js, that has purposely been added to .gitignore. Within this file is the password, username, and hostname used in mongoose.connect(host).

If you are not part of the 'official' team, merely create that file, create your own exports.host (point it to wherever), and continue happily. If you are part of the team, I will give you the hostname, password, and username.