mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-03 12:31:01 +08:00
Auth- Added Back-end Logic
removed personal details
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
var mongoose = require('mongoose');
|
||||
|
||||
// Connect to cloud database
|
||||
//https://mongolab.com/
|
||||
var username = "throwaway"
|
||||
var password = "throwaway1";
|
||||
var address = '@ds037637.mongolab.com:37637/throwaway_db';
|
||||
var url = 'mongodb://' + username + ':' + password + address;
|
||||
|
||||
function safeConnect() {
|
||||
try { mongoose.connect(url); }
|
||||
catch(err) { console.log("Error: Sign In to MongoLab") }
|
||||
// console.log("error caught");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user