Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basedhound/shopping-cart_react-ts

Fully functional shopping cart built from scratch using React, TypeScript, and Bootstrap. It uses local storage to persist data and showcases key techniques for creating a robust and efficient cart.
https://github.com/basedhound/shopping-cart_react-ts

bootstrap bootstrap5 localstorage react react-bootstrap react18 typescript vite

Last synced: 19 days ago
JSON representation

Fully functional shopping cart built from scratch using React, TypeScript, and Bootstrap. It uses local storage to persist data and showcases key techniques for creating a robust and efficient cart.

Awesome Lists containing this project

README

        



Project Banner

Shopping Cart - React / TypeScript


##
đź“‹ Table of Contents

- ✨ [Introduction](#introduction)
- ⚙️ [Tech Stack](#tech-stack)
- đź“ť [Features](#features)
- 🚀 [Quick Start](#quick-start)

##
✨ Introduction

**[EN]** A fully functional shopping cart built from scratch using React, TypeScript, and Bootstrap. This project incorporates local storage to persist cart data, demonstrating essential techniques and best practices for creating a robust and efficient shopping cart. It's an excellent intermediate-level project for web developers.

**[FR]** Un panier d'achat entièrement fonctionnel construit de zéro avec React, TypeScript et Bootstrap. Ce projet utilise le local storage pour conserver les données du panier, illustrant les techniques essentielles et les meilleures pratiques pour créer un panier d'achat robuste et efficace. C'est un excellent projet de niveau intermédiaire pour les développeurs web.

##
⚙️ Tech Stack

- [**React**](https://react.dev/reference/react) is a popular JavaScript library for building user interfaces, particularly single-page applications where data changes over time. React's component-based architecture allows developers to create reusable UI components, making development more efficient and the codebase easier to maintain.

- [**TypeScript**](https://www.typescriptlang.org/docs/) is a statically typed superset of JavaScript that allows for early detection of errors and more robust, maintainable code. TypeScript's type system helps developers catch mistakes early during the development process, ensuring a more stable and reliable application.

- [**Vite**](https://vitejs.dev/guide/) is a modern front-end build tool that offers a fast and efficient development environment. It leverages ES modules for quick build times and features hot module replacement (HMR) for instant updates, making it ideal for frameworks like React, Vue, and Svelte. Vite's minimal configuration helps streamline development workflows.

- [**Bootstrap**](https://getbootstrap.com/docs/4.1/getting-started/introduction/) is a popular front-end framework for developing responsive and visually appealing web interfaces. It provides a collection of pre-designed components and a responsive grid system that simplifies the creation of mobile-first websites. Bootstrap's extensive documentation and customizable styles help developers quickly build and maintain consistent and professional-looking user interfaces.

- [**Local Storage**](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) is a web storage feature that allows web applications to store data persistently in the user's browser. It provides a simple key-value store with a straightforward API, enabling developers to save data across browser sessions without expiration. Local Storage is ideal for storing user preferences, session data, and other non-sensitive information. Its synchronous API makes it easy to use, though it is limited to storing string data only and has a size limit of around 5MB per domain.

##
🚀 Quick Start

Follow these steps to set up the project locally on your machine.


**Prerequisites**

Make sure you have the following installed on your machine:

- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)


**Cloning the Repository**

```bash
git clone {git remote URL}
```


**Installation**

Let's install the project dependencies, from your terminal, run:

```bash
npm install
# or
yarn install
```


**Running the Project**

Installation will take a minute or two, but once that's done, you should be able to run the following command:

```bash
npm run dev
# or
yarn dev
```

Open [`http://localhost:5173`](http://localhost:5173) in your browser to view the project.