Skip to content

davidbarr2/Plant-Shop-ProofOfConcept

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plant Shop POC 🌿

Technologies

  • React, React Router, React Hooks, React Testing Library

See live

https://wso09.csb.app/

Browse Products Browse Products

View Cart - optionally remove from cart View Cart - optionally remove from cart

Checkout Form

Checkout Form - Empty

Submitted Checkout Form Submitted Checkout Form

Project Requirements

  • Create ecommerce site
  • Users can browse products
  • Add products to cart
  • Remove from cart
  • Navigate between browsing products and cart
  • Users can checkout by using a form to collect their information
  • On submit, the user is alerted that their payment was processed

Notes for Future Developers

  • For this Proof of Concept, a mock server is used rather than a live API.
    • [GET] * to http://localhost:3333/plants: returns an array of objects of the following form
{
    name: "Peperomia Rosso",
    id: 143,
    scientificName: "Peperomia caperata rosso",
    difficulty: "easy",
    light: "direct",
    img:
      "https://cdn.shopify.com/s/files/1/2781/9558/products/PEPEROMIA_ROSSO-1_800x.png?v=1587156590",
    sizes: ["small"],
    watering: 2,
    description:
      "Rosalia is a stunner with glossy green leaves accompanied by bright red undersides. Her oval shaped leaves are deeply grooved, adding depth to her figure. Flower spikes will appear with bright light, adding even more character to this absolute beaut.",
    price: 21,
  }

Testing

  • Exists in src/components/CheckoutForm.test.js
  • Verifies:
    • Checkout form renders without errors.
    • Success message appears when form filled out with valid data

Future Improvements

  • Make UI responsive to small screens
  • Further develop checkout payment- add fields for credit cards and leverage Stripe for payment functionality
  • Connect to your true database of plants for sale
  • Leverage Yup for additional form validation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.9%
  • CSS 12.9%
  • HTML 6.2%