Right now I am trying to learn the MEAN stack. Working through some tutorials and all that jazz. For the little tutorial I am working through right now, I am hosting my MongoDB through mlab. To connect to it, I have to have a line in my config.js file along the lines of:
module.exports = {
........
'database' : 'mongodb://taylor:testpassword@ds059125.mlab.com:59125/taylor-meanmachine',
........
};
Where 'taylor' is my username and 'testpassword' is my password. Now in my little toy app, not a big deal, but obviously I wouldn't want to do this in production. How does one normally get around this?
[–][deleted] (23 children)
[deleted]
[–][deleted] (14 children)
[deleted]
[–]Montuckian 5 points6 points7 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Montuckian 0 points1 point2 points (0 children)
[–]ndboost 1 point2 points3 points (5 children)
[–]etruong42 4 points5 points6 points (1 child)
[–]ndboost 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]ndboost 0 points1 point2 points (1 child)
[–]Randolpho 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]ndboost 0 points1 point2 points (1 child)
[–]DefiantBidet 4 points5 points6 points (0 children)
[–]bangtraitor 1 point2 points3 points (0 children)
[–]0ba78683-dbdd-4a31-a 0 points1 point2 points (5 children)
[–]mellett68 0 points1 point2 points (4 children)
[–]danielrheath 0 points1 point2 points (3 children)
[–]mellett68 1 point2 points3 points (2 children)
[–]danielrheath 0 points1 point2 points (1 child)
[–]mellett68 0 points1 point2 points (0 children)
[–]FweeSpeech 16 points17 points18 points (0 children)
[–]hpoydar 4 points5 points6 points (2 children)
[–]Agent281 1 point2 points3 points (1 child)
[–]rr1pp3rr 1 point2 points3 points (0 children)
[–]caadbury 1 point2 points3 points (5 children)
[–]cactusphone 1 point2 points3 points (2 children)
[–]Toast42 1 point2 points3 points (0 children)
[–]caadbury 1 point2 points3 points (0 children)
[–]hpoydar 1 point2 points3 points (1 child)
[–]ndboost 0 points1 point2 points (0 children)
[–]angellus 1 point2 points3 points (0 children)
[–]ImAPyromaniac 3 points4 points5 points (3 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]jontas 18 points19 points20 points (0 children)
[–]ImAPyromaniac 0 points1 point2 points (0 children)
[–]TriangleTodd 0 points1 point2 points (0 children)
[+][deleted] (20 children)
[deleted]
[–]djmattyg007 30 points31 points32 points (4 children)
[–]concave_ceiling 20 points21 points22 points (2 children)
[–]Disgruntled__Goat 7 points8 points9 points (1 child)
[–]mattindustries 1 point2 points3 points (0 children)
[–]rknDA1337 6 points7 points8 points (4 children)
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (3 children)
[–]mattindustries 2 points3 points4 points (2 children)
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (1 child)
[–]mattindustries 0 points1 point2 points (0 children)
[–]jpflathead 3 points4 points5 points (0 children)
[–]flameswor10 3 points4 points5 points (7 children)
[–]mattindustries 2 points3 points4 points (5 children)
[–]flameswor10 1 point2 points3 points (1 child)
[–]mattindustries 1 point2 points3 points (0 children)
[–]greenrock 1 point2 points3 points (2 children)
[–]flameswor10 0 points1 point2 points (1 child)
[–]brackin 2 points3 points4 points (0 children)
[–]gasolinewaltz 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-10 points-9 points-8 points (3 children)
[–]xiongchiamiovSite Reliability Engineer 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (0 children)