Introduction to SQL
Create a dataase.js and connection pool and export it as promise
Since I will be working wth real database I dont need fs and path
I also dont need something whihc i removed
Call this above function and also import db
All the products is in row
We now lets fix the product list page
Now lets check on adding product
Fetching single product
In Shop.js
Since the [product] is an array with single element so we need to extract first eelemet
nn
Comments
Post a Comment