Express JS - Server Side Basics and Form Handling
Below listed programming tasks are designed to practice different concepts of server side web programming using Express JS and related packages. These small tasks are designed to understand the core web concepts' implementation. Before you implement below tasks, its suggested to go through provided code samples, run and understand. It would make it easy to do the below tasks. Make a header in header.ejs and include this header in all EJS templates you write. Add Home link in header that shall point to /home URL. In same way, make a footer in footer.ejs and include it other EJS tempates. Add Products link in header and define appropriate handler for it, that shall serve list of products on the page. You can use ChatGPT to create an array of product objects. Each product object shall include attributes like: product title, category, original_price, image_url, discount_price, available (true/false), etc. If a product's available attribute is false, render 'Product out of stoc...