Nxt Trendz
Failure View
Click to view
- Extra Small (Size < 576px) and Small (Size >= 576px) - Products
- Extra Small (Size < 576px) and Small (Size >= 576px) - No Products
- Extra Small (Size < 576px) and Small (Size >= 576px) - Failure View
- Medium (Size >= 768px), Large (Size >= 992px) and Extra Large (Size >= 1200px) - Products
- Medium (Size >= 768px), Large (Size >= 992px) and Extra Large (Size >= 1200px) - No Products
- Medium (Size >= 768px), Large (Size >= 992px) and Extra Large (Size >= 1200px) - Failure View
Click to view
- Download dependencies by running
npm install - Start up the app using
npm start
API Requests & Responses
productsApiUrl
Returns a response containing the list of Products
{
"products": [
{
"title": "Front Load Machine",
"brand": "Samsung",
"price": 22490,
"id": 24,
"image_url": "https://assets.ccbp.in/frontend/react-js/ecommerce/appliances-washing-machine.png",
"rating": 4.5,
},
....
]
}Implementation Files
Use these files to complete the implementation:
src/components/AllProductsSection/index.jssrc/components/AllProductsSection/index.csssrc/components/FiltersGroup/index.jssrc/components/FiltersGroup/index.css
Click to view
The following instructions are required for the tests to pass
-
HomeRoute should consist of/in the URL path -
LoginRoute should consist of/loginin the URL path -
ProductsRoute should consist of/productsin the URL path -
CartRoute should consist of/cartin the URL path -
No need to use the
BrowserRouterinApp.jsas we have already included inindex.js -
User credentials
username: raja password: raja@2021 -
The rating stars images in the route should have the alt attribute value as rating {ratingId}
Image URLs
- https://assets.ccbp.in/frontend/react-js/nxt-trendz/nxt-trendz-no-products-view.png alt should be no products
- https://assets.ccbp.in/frontend/react-js/nxt-trendz/nxt-trendz-products-error-view.png alt should be products failure


