{"id":19057622,"url":"https://github.com/pktcodes/cart-react-project-v2","last_synced_at":"2026-04-17T05:03:37.569Z","repository":{"id":191776785,"uuid":"684902371","full_name":"pktcodes/cart-react-project-v2","owner":"pktcodes","description":"Cart Project using React","archived":false,"fork":false,"pushed_at":"2023-09-03T04:05:36.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T11:44:31.276Z","etag":null,"topics":["array-from","async-await","cart","context-api","css","custom-hooks","ecmascript","fetch-api","html","javascript","john-smilga","map-interface","react","react-hooks","react-icons","useeffect","usereducer"],"latest_commit_sha":null,"homepage":"https://react-usereducer-cart-v2-prod.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pktcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-30T04:50:46.000Z","updated_at":"2023-09-03T02:42:20.000Z","dependencies_parsed_at":"2024-08-12T23:21:28.922Z","dependency_job_id":"5d66f4c9-c708-4bf5-95ea-b61db3084504","html_url":"https://github.com/pktcodes/cart-react-project-v2","commit_stats":null,"previous_names":["praveen-1995/cart-react-project-v2","pktcodes/cart-react-project-v2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcart-react-project-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcart-react-project-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcart-react-project-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcart-react-project-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pktcodes","download_url":"https://codeload.github.com/pktcodes/cart-react-project-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113944,"owners_count":19749829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array-from","async-await","cart","context-api","css","custom-hooks","ecmascript","fetch-api","html","javascript","john-smilga","map-interface","react","react-hooks","react-icons","useeffect","usereducer"],"created_at":"2024-11-08T23:58:26.310Z","updated_at":"2026-04-17T05:03:37.539Z","avatar_url":"https://github.com/pktcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cart 🛒\n\n\u003e PROD [Live] : https://react-usereducer-cart-v2-prod.netlify.app/\n\n#### Cart consists of a straightforward user interface where there is a\n\n- List of some of the items added to the cart, **Navbar** with the title *useReducer* , **cart amount** i.e. total number of items added by default, and a **`CLEAR CART`** button to clear all items in the cart which on click shows `YOUR BAG is currently empty`.\n- Each cartItem has the `image` , `title` , `price` , `amount`, along with a few buttons i.e. **`remove`** to remove the item from the cart, 🔼 to increase , 🔽 to decrease the amount of that particular item and when the item amount gets less than 1, it is automatically removed from the cart.  \n- For every change in cartItem, the **total price** and **cart amount** gets adjusted.  \n- **`Loading`** spinner will be shown while fetching data, once the data is available cart will be shown. \n- Data is handled by **`API`**, and styles are handled by **`index.css`**\n- To run the project locally, clone the repo, `npm install` to install the dependencies, and `npm run dev` to start up the development server on default port 5173.\n\n#### Languages\nHTML, CSS, JavaScript, ECMAScript, React ~ ContextAPI - Hooks ~ useEffect, useReducer, useContext\n\n#### Packages\n[React Icons](https://www.npmjs.com/package/react-icons)\n\n#### API\nhttps://www.course-api.com/react-useReducer-cart-project\n\n#### Deployment / Hosting\nNetlify\n\n---\n\n_Note: I have developed this project ~ [15] as part of React 18 Tutorial and Projects Course (2023) taught by John Smilga._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fcart-react-project-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpktcodes%2Fcart-react-project-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fcart-react-project-v2/lists"}