Test:
Instructions:
1. Candidates are free to use any programming language or framework of
their choice to complete the task.
2. All solutions must be submitted via your personal GitHub account. A
separate form for submitting your project link will be provided.
3. Demonstrate your Git workflow skills, including branching and pull
request management.
4. Host a live version of your solution using a service like GitHub Pages,
Vercel, or any other hosting platform.
5. Include a detailed README file in your repository that explains the
project and provides clear instructions on how to run it locally.
QUESTION : Shopping Cart Application
Objective:
Develop an application that allows users to manage items in a shopping cart.
Project Requirements:
1. Product Display:
○ Create a JSON file (e.g., [Link]) within your project
repository to act as a mock API endpoint.
○ This file should contain a list of at least 10 products, each with a
name and a price.
○ Your application should fetch and display these products to the
user.
2. Cart Functionality:
○ Add to Cart: Users must be able to add products from the list to
their shopping cart.
○ Update Cart: In the cart, users should be able to increase or
decrease the quantity of each item.
○ Delete from Cart: Users must be able to completely remove an
item from the cart.
○ Calculate Total: The application should calculate and display the
total price of all items in the cart.
3. Coupon Feature:
○ Implement a feature that allows users to apply a coupon code.
○ Use the coupon code POWERLABSx to apply a 13.2% discount to
the total cart amount upon checkout.
4. Input Validation:
○ Inputs, such as the coupon code, must be validated. You may use
methods like Regular Expressions for this.
5. Error Handling:
○ Implement robust error-handling mechanisms to ensure the
application runs smoothly.