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

Popular posts from this blog

Form Part 2

Event mini project by Thapa#33

De-mystifying 'this' keyword of Javascript