Open Karyum opened 2 years ago
https://github.com/webAhead1/e-store/blob/master/server.js#L12 https://github.com/webAhead1/e-store/blob/master/public/cart/cart.js
cart.js it's not a public file (a public file is a file which would be sent to the user's browser, the entire file) it's backend only file. same goes to the database folder and products.js you should move it to the root folder of the project
https://github.com/webAhead1/e-store/blob/master/server.js#L12 https://github.com/webAhead1/e-store/blob/master/public/cart/cart.js
cart.js it's not a public file (a public file is a file which would be sent to the user's browser, the entire file) it's backend only file. same goes to the database folder and products.js you should move it to the root folder of the project