Skip to content

Instantly share code, notes, and snippets.

Feel the future

Jackie D jackie-d

Feel the future
Block or report user

Report or block jackie-d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c940b4523954b247fa23e7317b2f8728
//include express library
const express = require('express');
const app = express();
//include mongodb client library
const MongoDb = require('mongodb').MongoClient;
//declare the parameters to connect to MongoDB server and DB
const mongoDbUrl = 'mongodb://localhost:27017';
const mongoDbDatabaseName = 'rest-api';
You can’t perform that action at this time.