This is a Next.js project bootstrapped with create-next-app.
- When navbar of application renders , it fetches product_id and quantity of cart from database and store it in context(store.)
- Cart icon, product detail page and cart page get quantity from store.
- Click on cart -> It will add product_id and quantity in database and if response is successful it will add same info into store.