You are given a code repository containing a web application built with PHP and CSS. The application is designed to display a list of e-commerce items and their details. However, the codebase has several issues that need to be addressed to improve the functionality and user experience. Your task is to improve the code by addressing the following issues:
-
Documentation: The code lacks proper documentation. Add clear and concise comments to the code explaining the purpose of each component and function, the inputs it expects, and the outputs it generates.
-
Bug fixing: The application has some bugs that need to be fixed. There are issues with loading the details of the items. You need to identify and fix these issues.
-
Code optimization: The code is inefficient and could benefit from optimization. Identify and implement improvements to optimize the code for better performance, such as reducing the number of API requests.
-
Feature enhancement: Add a new feature to the application that allows the user to search for various items by title. Implement a search bar that filters the item list based on the search query.
https://github.com/Suvodeep-Das/code-repo
- Fork the project
- Make any changes in your forked repo
- On this repo, click
Pull Requests
and raise aPull Request
selecting your fork on the right drop down
Click on the clone button (green in colour). This gives you a copy of the project. Its now yours to play around with
- Using git on your local machine. Do this to download the forked copy of this repo to your computer
git clone https://github.com/Suvodeep-Das/code-repo
- switch to the cloned folder. This can be done with Gitbash or the integrated terminal in the VSCode editor
cd portfolio
- Make a new branch. Your name would make a good branch because it's unique
git checkout -b <name of new branch>
-
Make Required changes using the Tec-Stacks mentioned above
-
Stage your changes
git add <file-name>
or
git add .
- Commit the changes
git commit -m "Add <what changes you made>"
- Check the status of your repository
git status
- Pushing your repository to github
git push origin <name of your branch>
or
git branch -M main
git push -u origin main
git push origin main --force
-
Navigate to your fork, on the top of the files section you'll notice a new section containing, a contribute button!
-
Click on the contribute button, it will open a drop down, click the pull request button on the drop down Note: A pull request allows your changes to be merged with the original project.
-
Wait for your changes to be merged