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

NPM Commands #36

Closed jordan-castelloe closed 6 years ago

jordan-castelloe commented 6 years ago

Description

Added db:generate, data:generate, start npm commands to package.json

Number of Fixes

Fixes issue #15

Problem to Solve

Creates npm shortcut commands so you don't have to type node data/build-data.js. That's too many letters! We're very busy developers! We want to type short, cool stuff like db:generate. Heck yeah!! So cool!!

Expected Behavior

Most of the files that these commands will run don't exist yet, so nothing will really happen! But you should be able to run npm run db:generate and not see any errors.

Steps to Test Solution

  1. Run npm run db:generate in your terminal console and marvel at the lack of errors. (If you run any of the other ones at this point, it will throw errors.)