Skip to content

Instantly share code, notes, and snippets.

View dscotese's full-sized avatar

Dave Scotese dscotese

View GitHub Profile
#! /usr/bin/env node
console.log(
'This script populates some test books, authors, genres and bookinstances to your database. Specified database as argument - e.g.: node populatedb "mongodb+srv://cooluser:coolpassword@cluster0.lz91hw2.mongodb.net/local_library?retryWrites=true&w=majority"'
);
// Get arguments passed on command line
const userArgs = process.argv.slice(2);
const Book = require("./models/book");

Keybase proof

I hereby claim:

  • I am dscotese on github.
  • I am dscotese (https://keybase.io/dscotese) on keybase.
  • I have a public key ASAj9jG3MGuukwdKXYUBfRkyLqs87Xg8g_JePLEWapcl-wo

To claim this, I am signing this object:

31jHPWie45TVHW8cjdZUvwxQsoaXuRHQpS: 152.92580241 BTC
31kH3ou74Lf1woYUFHAuw5TXJUYTZn2iY1: 0.17936698 BTC
31q7iya4jZusaYCCKJMssxbEsbKMj1xidX: 0.5144 BTC
31t2fGtBgcBTe5fqgYZuknmBV67n7tHndj: 0.53915224 BTC
31uxFiZRzhayYfX8rimvsmVukVnRahHbvA: 1.3910899 BTC
31x9cmwH4ih9P28QgCXoYZnxUzK6XeKhhJ: 1.08381021 BTC
31xrpcsab9Ny2nXscxKe9qzyM1asDBHWS7: 0.01030132 BTC
323s34tDo5V1jCaUWCCP7Gsb9PXh8PLwTQ: 3.4597086 BTC
325Eaq5r1k6Q3p7JfCep8LyigVjbr42U6z: 0.2630129 BTC
325cxka54Gc13ra77gAR27r4AxnZP9pHdh: 0.02441845 BTC