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 modules. These are to make the understanding of concepts along with their implementation clear, some of them may not represent practical requirements. Make a header in header.ejs and include this header in all EJS pages. Add /home link in header. In same way, make a footer in footer.ejs and include this footer in all EJS pages. Make a handler /queryhandler, it shall display all query string parameters sent to server at server console. (they are stored in req.query obeject) Make another handler i.e. /queryhandler2, on GET request, it shall display all submitted request parameters to user screen using show.ejs ( in this case, you just need to pass req.query to the template) 3.1 Create a form that shall let user to add new book, serve the form at /add-book URL. Let user input Book Title, Author Name, Published Year and Publisher Name. Handle form usi...