Skip to content

Course Assignment for JavaScript Frameworks. Create an e-commerce app in React

Notifications You must be signed in to change notification settings

baresi687/js-frameworks-ca

Repository files navigation

Home

JavaScript Frameworks Course Assignment

Goal: To apply knowledge of React to build an eCom store.

Description

Build an online shop in React with these requirements:

  • Homepage should list all the products and include a search bar to filter them.
  • Use a layout component with header and footer.
  • Product details page should display product details and have an Add to Cart button which adds the product to the cart.
  • Cart icon component in the header should display the number of items in the Cart with an overlay.
  • Cart page should list all the products in the cart and the total price. Clicking checkout button should clear the cart and redirect to the Checkout success page.
  • Contact page with form validation. Valid email, minimum of 3 characters and required attribute.
  • Use React Router to switch between pages.
  • Responsive design.

Screenshots

Product details Product details adding to cart Product details added to cart Product details reviews Cart page

Built With

Getting Started

Installing

  1. Clone the repo:
git clone [email protected]:baresi687/js-frameworks-ca.git
  1. Install the dependencies:
npm install

Running

To run the app, run the following commands:

npm run build
npm run preview

Deployed site

eShop

Contact

My LinkedIn page