A demo application showcasing the SnappyCart React shopping cart library.
- Add items to cart
- View cart in a sliding drawer
- Increase/decrease quantities
- Remove items
- Clear cart
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser to
http://localhost:5173(or the port shown in the terminal)
- Click "Add Apple" or "Add Banana" to add items to the cart
- The cart drawer will appear on the right side
- Use the +/- buttons to adjust quantities
- Click × to remove an item
- Click "Clear Cart" to empty the cart
- React
- TypeScript
- Vite
- SnappyCart (local implementation)