chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Create Product Table #73

Closed TimAConner closed 6 years ago

TimAConner commented 6 years ago

Description

Add's an exported anonymous function to makeProductTable.js which creates the product table using the products.json.

Related Ticket(s)

Finished Issue #41 (Create Product Table)

Expected Behavior

When you require in makeProductTable.js it should export a function that when you call creates a Products database with pertinent information.

Steps to Test Solution

  1. Run: cd db/products/
  2. Run: node
  3. Run: const createProduct = require('./makeProductsTable');
  4. Run: createProduct();
  5. Open api-sprint.sqlite located in the db/ folder in your sql browser of choice and check if a Products table has been created.