MCPcopy Index your code
hub / github.com/reactGo/reactGo / connect

Function connect

server/index.js:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11// Find the appropriate database to connect to, default to localhost if not found.
12var connect = function() {
13 mongoose.connect(secrets.db, function(err, res) {
14 if(err) {
15 console.log('Error connecting to: ' + secrets.db + '. ' + err);
16 }else {
17 console.log('Succeeded connected to: ' + secrets.db);
18 }
19 });
20};
21connect();
22
23mongoose.connection.on('error', console.log);

Callers 5

requireAuthenticationFunction · 0.85
Navigation.jsxFile · 0.85
Vote.jsxFile · 0.85
Login.jsxFile · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected