npm installyour packages. pg and sequelize-cli are already called upon.
config/config.jsand change your username.
npx sequelize db:create
npx sequelize db:migrate
npx sequelize db:seed:all
Appcomponent. This is the same for all the other data we need throughout the app, such as which item is currently selected, and the array of items in the cart.
Appvia a prop function to add that item to the
cartarray stored in app state. We format the data (to add quantity) in the prop function before modifying
cartarray sets off the rendering of the
Cartcomponent and items in the cart.