A responsive React.js app to browse food products with nutrition, ingredients, labels, category filtering, infinite scroll, and cart functionality.
- View products from OpenFoodFacts API
- View product nutrition, labels, and ingredients
- Infinite scroll to load more products
- Search by name or barcode
- Filter by category & sort by name/nutrition
- Add to cart & view cart page (with delete & clear cart)
- React.js
- Tailwind CSS
- React Router
- Axios
- React Context API (for cart state)
I used:
axios
to fetch product dataIntersectionObserver
to implement infinite scrollReact Context API
to manage cart globallyopenfoodfacts.org
API viaallorigins.win
proxy to bypass CORS
- Started: July 9, 2025
- Completed: July 12, 2025
- Total time taken: 3 days
- Ajay Panchal – https://www.linkedin.com/in/ajay-panchal-1b9936312