Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
1 Hrs
54 Min
17 Seg

Setup del proyecto con React y Vite

2/9
Resources
Transcript

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:

  1. 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).

  2. 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].
  3. 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.

  1. 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
  2. Prepare the environment:

    • Install the dependencies with:

      npm install
  3. 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.

  1. 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.
  2. 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!

Contributions 10

Questions 2

Sort by:

Want to see more contributions, questions and answers from the community?

Clonar repositorio

git clone https://github.com/platzi/curso-react-practico.git

Ingresar a la ruta del proyecto

cd curso-react-practico

Ver en que rama estas

git status

Cambiar a rama clase-27

git checkout clase-27

Instalar dependencias

npm install

correr proyecto

npm run dev
la API esta destruida :(

Estaría genial Algún curso teórico de React que explicaran, un poco mas a detalle Conceptos actualizados de Redux, Router, axios, etc, las actualizaciones de React de una versión a la otra, cambian un poco la forma en la que se escribe el código y lo hace confuso, gracias a platzi estan sacando nuevos cursos de esta tecnología y poder seguir aprendiendo.

La API está dañada, los links de las imágenes se ingresaron incorrectamente y no puede acceder al recurso.
API Danada: PlaceIMG de la API Ya no existe. Se debería de utilizar otro servicio de imágenes para utilizar la API. No es crucial, pero sí para la experiencia para arreglarlo. E igual con otras imágenes las rutas no existen. Con lo cuál no se pueden visualizar las imágenes. ![](https://static.platzi.com/media/user_upload/image-94985597-6752-4a17-acd5-3f631331ca62.jpg)
La api del fake store de platzi esta totalmente rota

¿Te da error al inciar npm run dev?

Luego de clonar el repositorio y moverme a la rama correspondiente, por alguna razón no me funcionaba el comando vite (el que se corre en los scripts para dev y build). Intenté usar yarn, borrar el lock-file y node_modules pero no funcionó.

Lo que hice fue cambiar los scripts del package.json asi:

  "scripts": {
    "dev": "./node_modules/vite/bin/vite.js",
    "build": "./node_modules/vite/bin/vite.js build",
    "preview": "./node_modules/vite/bin/vite.js preview"
  },
¡Hola a todos! 👋 Quiero compartirles que la API original del curso está rota, lo que puede dificultar completar los ejercicios. Para ayudarles, he creado una versión funcional del proyecto base con una nueva API y código actualizado. 🚀 Pueden clonar este repositorio para seguir el curso sin problemas: 👉 <<https://github.com/darubiomunoz/prueba-tecnica-reactjs>> Además, si les resulta útil, no olviden darle una estrella ⭐ al repositorio y seguirme en GitHub. ¡Espero que les sea de ayuda y puedan completar el curso con éxito! 💚 ¡Happy coding! 💻
Me pueden pasar el link del repositorio
.