Skip to content

Instantly share code, notes, and snippets.

@AlexeyHussar
AlexeyHussar / app.js
Created November 12, 2017 21:42
Node_KB
const express = require('express');
const path = require('path');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
// Creating bindings todb
mongoose.connect('mongodb://localhost/nodekb', {
useMongoClient: true
});
let db = mongoose.connection;