How programminghero1/awesome-water-bottles works
Project type and purpose
• This is a single-page front-end application built with React and Vite.
• Purpose: display a list of bottles, allow adding/removing items to a cart, and persist cart state in localStorage.
File structure
• Top-level files:
– index.html: HTML entry point
– vite.config.js: build and dev‐server configuration
– package.json / package-lock.json: npm dependencies and scripts
– eslint.config.js: lint rules
• public/: static assets (bottles.json)
• src/: source code
– main.jsx: React render root, HMR integration
– App.jsx / App.css: root component and styling
– components/: UI components grouped by feature (Bottle, Bottles list, Cart)
– assets/: (empty or images/fonts)
– utilities/localstorage.js: abstraction over window.localStorage
– index.css: global styles
README for additional insights
• Confirms React + Vite setup with hot-module replacement via Babel or SWC
• Lints via ESLint, suggests TypeScript for production