542588dd96049a55ae76fdf0807c1b5679259d85
[qomet.git] / utils / database.js
1 const mongojs = require("mongojs");
2 const params = require("../config/parameters");
3
4 const connectionString =
5 params.db.user + ":" + params.db.password + "@" + params.db.host + ":" + params.db.port + "/" + params.db.name
6
7 const db = mongojs(connectionString);
8
9 module.exports = db;