Posts

Showing posts from 2025

Signup, Login & Authorization

Objective The objective of this assignment is to extend the Address Book application developed in last lab task (Assignment 3) by implementing a user authentication system and role-based access control . Students will create a Signup and Login system and ensure that only authenticated users can perform Create, Update, and Delete operations. Application Requirements 1. Users Data Storage Create a new JSON file named auth-users.json .  This file will store registered users as an array of objects. You can also use mongodb database to store users data. Each user object must contain: id name email password Password hashing is not required for this assignment. 2. Signup (Registration) Feature Create /signup route. On GET request , display a signup form. Form fields: Name Email Password Confirm Password On POST request : Validate password and confirm password. Check if email already exists in auth-users.json . If validation fails, show an error message on signup page. If successful, ...

Download, Parse and Save data

Using HTTP Client library of your programming language of choice, download this page and parse products’ data i.e. image URL, title, description, price. Make an xlsx file that should contain the parsed data. If you are using Python, you can use Requests library to download, BeautifulSoup library to parse. Use pandas library to make xlsx file. If you are using Java, you can use Apache HTTP Client library to download and parse and Apache POI library to make xlsx file.

Create Listing and Detail Page using HTML/CSS of any e-commerce store

On all ecommerce page, there are two common pages: 1. Products Listing Page. It display list of products when uer choose a product category of search products entering some keywords or applying some filtes e.g.  https://www.daraz.pk/smartphones https://myshop.pk/laptops-desktops-computers/laptops 2. Product Detail Page - it display individual product detail e.g. https://www.daraz.pk/products/105-pta-i656021303-s3082667234.html https://myshop.pk/hp-notebook-15-fd0131wm-pakistan.html Create these two HTML pages, you can make design yourself or clone an existing e-commerce design but select popular e-commerce website of any country (above links are just examples). Choose a content rich e-commerce website i.e. do not choose a very simple pages layout that display only few attributes of the product. Use images using online URLs. Particularly focus/practice following: HTML - div, a, img, etc.  Applying CSS selector and basic prop to style links, text, etc. Box Model and Flex Box- t...