react front end that will show the following:
- products screen
- cart screen
should contain the following actions:
- Show all products
- Show products in Cart
- Add a product to Cart
- Remove from Cart
- Update quantity in Cart
an api written in django using djangorestframework
the api will include:
Product will have a name, description price and image
- get products
- add product
- get single product
- delete product the delete action - should not delete but mark as archived (therefore the get products, search products should bring only product where archived=False)
- update product
Cart item will contain 2 fields:
- product as foreign key
- quantity
- get CartItems
- get single CartItem
- add CartItem
- Delete CartItem - also archive instead of delete
- Update CartItem
(5 bonus points for each one - 100 is still the maximum grade)
- add Order model. The user will click "checkout" which should save the order and clear the cart.
I suggest you add this model first in django.
then think about how to add it in react - Search products (react+django)
- See order history
- Authentication (react + django)
deploy this project on the web and add it to your resume (we will go over this in class)