Prerequisites
Before you start, ensure you have:- A modern web browser (Chrome, Firefox, Safari, or Edge)
- An internet connection for CDN dependencies
- A local web server (or use
npx servefor quick testing)
Run the Application
Navigate to Products
The application uses React Router with HashRouter for client-side routing.View the product catalog
Click on the products link in the navigation bar, or navigate directly to:This route loads the
Main component from components/main.js:1.The application fetches camera data from a remote JSON endpoint at
https://eduardo24cba.github.io/dataSsegh/camaras.json on initial load.Use Filters
The application includes a powerful filtering system to help users find specific cameras.Available Filter Categories
The sidebar displays three main filter categories:- Diseño (Design): Interior or Exterior cameras
- Resolución (Resolution): 2MP, 4MP, 5MP options
- Tipo de Cámara (Camera Type): Domo, Bullet styles
Apply a Single Filter
View filtered results
The URL updates to
/productos/camaras/filtro/exterior and displays matching cameras.The filter logic is handled in components/filtercamaras.js:10-14:Apply Multiple Filters
Select additional filters
After applying one filter, click another option from a different category.
Filter combination
The URL updates to include multiple filters:The Redux store filters cameras that match ALL selected criteria using
filterCamarasAside in store/camarasSlice.js:163-181.Remove Filters
Click the X button on any active filter badge to remove it. The filter removal logic is incomponents/navbarAside.js:53-60:
Removing all filters redirects you back to
/productos with all cameras visible.View Camera Details
Click any camera card to view detailed specifications:View details page
Navigate to
/productos/camaras/:modelo to see:- Full camera specifications
- High-resolution images
- Detailed description
- Technical features
Next Steps
Installation Guide
Learn about browser requirements and CDN dependencies
Architecture
Understand the application structure and design patterns
Components
Explore the React component hierarchy
State Management
Learn how Redux manages application state