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