horoeka-2022 / gardenz

Empowering community gardens in New Zealand
0 stars 1 forks source link

Shop: Creating a shop front #55

Open clementine-smart opened 1 year ago

clementine-smart commented 1 year ago

This is part of a much larger feature of implementing an ecommerce shop and then managing orders for each garden in both Users and Admin. This is the first ticket of the User's Shop front. Up next will be the cart, and checkout!

Checkout the Figma wireframes so you can see exactly what you are building. If you have any questions after reading the ticket please make sure you have asked for questions before starting!!

We need to make the shop component and files in the following folder.

client/
├─ views/
│  ├─ users/
│  │  ├─ Gardens/
│  │  │  ├─ Shop/ 
│  │  │  │  ├─ Shop.jsx 
│  │  │  │  ├─ shop.test.js 
│  │  │  │  ├─ shopHelper.js

Shop.jsx will render when the user hits /gardens/:id/shop

We will only have two items to begin with - a large seasonal box and a small seasonal box. However the back end will simultaneously be being built so this will need to be dummied.

The functionality above will store the necessary product data into local state which will then be passed into the cart (issue ##). Use Sweet as Organics as a reference except this time we will not be using redux! (its actually unnecessary for what we are doing)