diff --git a/app.js b/app.js index dd5c101..e0d8f12 100644 --- a/app.js +++ b/app.js @@ -259,6 +259,7 @@ MongoClient.connect(config.databaseConnectionString, {}, (err, client) => { // add indexing common.runIndexing(app) + .then(common.testData(db)) .then(() => { // lift the app app.listen(app.get('port'), () => { diff --git a/bin/testdata.json b/bin/testdata.json new file mode 100644 index 0000000..bd94d2b --- /dev/null +++ b/bin/testdata.json @@ -0,0 +1,67 @@ +[ + { + "productPermalink": "duckworth-jacket", + "productTitle": "Duckworth Woolfill Jacket", + "productPrice": "188.00", + "productDescription": "
Inspired by the timeless, functional style of your grandfather's work coat, the Foraker features brass buttons and 4 patch pockets. Crafted in Bristol, Tennessee, our 10oz organic duck canvas is light enough for an early summer morning, but rugged enough to handle your days work.<\/p>
A classic 5 panel hat with our United By Blue logo on the front and an adjustable strap to keep fit and secure. Made with recycled polyester and organic cotton mix.<\/p>
The Mesabi Iron Range lies in northern Minnesota, a rugged and remote area known for its iron mines. The local residents who work these mines are proudly known as Iron Rangers, individuals with a sense of adventure and a determined personality. Originally designed to be worn in the iron mines, Iron Ranger work boots had to be as tough as the people who wore them in demanding conditions. Iron Ranger boots are built with a double layer of leaver over the toe to provide an extra measure of safety.<\/p>
Buttons are fussy. Sometimes you just want to roll out of bed, put on the pull over and get to the days work. Julie is 5'8\" and wearing a size small.<\/p>
This durable backpack is ready for any adventure, large or small. Features adjustable and padded shoulder pads for comfort. Designed with a storm flap and a secured by two snap-button closure. Made with a waxed downpour proof exterior canvas and a soft cotton interior lining. Finished with brass hardware and genuine leather trimmings.<\/span><\/p>