- PLP page including sort (ASC/DESC) and filter by categories
- Cart Page with cart items and total price, also empty state
This project was bootstrapped with Create React App.
-
Clone the repo on your local:
git clone https://github.com/leonace924/react-polaris-cart.git
-
Go to the resulting folder and install all dependencies:
cd react-polaris-cart && yarn
-
Create a file named
.env.local
, copy data from.env.example
and update the API URL in that file -
Start the local build script:
yarn develop
- React
- Redux, Redux-Toolkit, Redux-Persist
- Axios
- Shopify Polaris
- React Testing Library (added in two files - store/slice/cartSlice.test.js, components/Common/CartItem/CartItem.test.js)
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.