In this project, I used product add, product remove and product filter functions. I defined functions and states using redux. Products are fetched from json file. The api was created by running the json file on 3000.port with json-server. Responsive design was used in the project
Key Points;
- Add to cart
- Remove from cart
- Update cart
- Product filtering
1. Fork the repo and then clone it or download it.
2.First install all dependencies:
npm install (with npm)
yarn (or with yarn)
yarn (or with yarn)
3. Install json-server
npm install -g json-server
4. Start the api
4.1. Enter api file
json-server --watch db.json
5. Start the server
npm start [OR] yarn start
6. Now run the app
localhost:[PORT]