A sleek, responsive, and interactive plant shopping web application built with React, Redux, and Vite. This project allows users to browse categories of plants, add them to a cart, update quantities, and experience a modern shopping interface.
- Browse Plants by Categories: Explore a variety of plants categorized for easy navigation.
- Add to Cart: Seamlessly add plants to your shopping cart with a single click.
- Cart Management:
- Increment or decrement item quantities.
- Remove items from the cart.
- View real-time cart totals and subtotals.
- Responsive Design: Optimized for mobile, tablet, and desktop screens.
- Redux-Powered State Management: Efficient and predictable global state handling.
- Vite Build System: Fast development and optimized production builds.
- Frontend: React, Redux
- Build Tool: Vite
- Styling: CSS (responsive and modern styling)
- State Management: Redux Toolkit
-
Clone the Repository:
git clone https://github.com/Cod-e-Codes/e-plantShopping.git cd e-plantShopping
-
Install Dependencies::
npm install
-
Run the Development Server::
npm run dev
-
Build for Production::
npm run build
-
Preview the Production Build::
npm run preview
- Browse Categories: Navigate through the categorized plants on the home page.
- Add Items to Cart: Click the "Add to Cart" button on your favorite plants.
- Manage Cart:
- Adjust the quantity of items.
- Remove items you no longer need.
- Continue Shopping: Switch between the cart and product catalog seamlessly.
- View Cart Totals: Stay informed about your cart's total cost.
This project can be deployed to platforms like Netlify, Vercel, or GitHub Pages. The vite.config.js
is configured with a base
for GitHub Pages.
- Add the
gh-pages
package:npm install gh-pages --save-dev
. Update package.json with the following scripts:
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
}
- Deploy to GitHub Pages:
npm run deploy
Contributions, issues, and feature requests are welcome! Feel free to fork the repo and submit a pull request.
This project is licensed under the Apache License 2.0. You are free to use, modify, and distribute this project under the terms of this license.
- Cody Marsengill
- GitHub: Cod-e-Codes