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.js
src/components/AllProductsSection/index.css
src/components/FiltersGroup/index.js
src/components/FiltersGroup/index.css
Click to view
The following instructions are required for the tests to pass
-
Home
Route should consist of/
in the URL path -
Login
Route should consist of/login
in the URL path -
Products
Route should consist of/products
in the URL path -
Cart
Route should consist of/cart
in the URL path -
No need to use the
BrowserRouter
inApp.js
as 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