How to clone the repository for technical testing?
Repository scanning is an essential skill for developers, and in this case, the project is part of a hands-on React course. For those who have already completed that course, this is an advantage, as they will be familiar with the project. However, those who are new should not worry; here you will learn how to clone the repository and understand its structure.
To get started, follow these simple steps:
-
Navigate to the base repository: this is where our base project is located. You will find branches labeled according to the course classes and those indicating the solution of certain challenges (e.g. laf-challenge1
).
-
Clone the repository:
-
Click Code
and select your preferred cloning method, e.g. GitHub Client.
-
Copy the link and use it in your code editor with the following command:
git clone [repository_URL].
-
Confirm the clone: Verify that it cloned correctly by using ls
to list the files.
What is the starting point for the technical test?
To make sure you are ready to get started with the project, you will need to position yourself on the correct branch, which will be the basis for developing the technical test.
-
Position the right branch:
-
While in the cloned project directory, use git status
to confirm that you are on the main branch.
-
Switch to the branch of the last practice class with:
git checkout class 27
-
Prepare the environment:
-
Run the project:
-
Once the preparations are ready, launch the project with:
npm run dev
-
Access the URL provided by the terminal to view the project in the browser.
What problems will we face and how to investigate them?
When you start the application, you will notice certain features that might be buggy or incomplete. Here we will focus on exploring those problem areas.
-
Aspects to examine in the application:
- Search box and app bar: Make sure they are working properly and explore their behavior.
- Missing functionality:
- When clicking
Sign In
, a blank page loads.
- The
My Account
section is also empty and requires your intervention.
-
Expected tests and errors:
- You will identify blank pages and small errors during navigation.
- Correct these issues as part of your experimentation and fine-tuning of the project.
How to go deeper into the project before proceeding?
It is crucial to have a clear understanding of the project before you venture into solving the technical test. Be sure to familiarize yourself with the following actions in the application:
- Add to shopping cart: Check that this functionality works correctly.
- Remove from cart: Make sure that the removal process runs smoothly.
Investigating these features will allow you to identify areas that may need adjustment. With a solid understanding of the project, you will be ready to face the technical challenges and successfully complete the technical test. Go ahead and learn!
Want to see more contributions, questions and answers from the community?